ruefulness
1. [ noun ] sadness associated with some wrong done or some disappointment
Synonyms: regret sorrow rue
Examples:

"he drank to drown his sorrows" "he wrote a note expressing his regret" "to his rue, the error cost him the game"

Related terms: sadness attrition compunction repent grieve