mteric
-ㄴ다니 유감이다
-ㄴ다니 안 됐다
-ㄴ다니 기쁘다
-ㄴ다니 잘 됐다
-ㄴ다니 의외다
-ㄴ다니 이상하다
In all of these examples and more, -ㄴ다니 has the meaning of the part "that S+V" in sentences like "I'm sorry to hear that S+V", "I'm happy to hear that S+V", "I'm surprised to hear that S + V"
And -ㄴ다니 comes from -ㄴ다고 (말)하니
and -ㄴ다고 (말)하니까
I hope this helps!