That's really a pity.
Standard kanji spelling for this phrase.
Variant with 事; less common but still seen.
Phrase composed of 残念 (regrettable) + な (attributive form of na-adjective) + こと (thing). The word 残念 itself is a Sino-Japanese compound from 残 (remain) and 念 (thought/feeling), implying lingering regret.