ruefulness

nouns

sadness associated with some wrong done or some disappointment
"he drank to drown his sorrows"; "he wrote a note expressing his regret"; "to his rue, the error cost him the game"
is derived from