It might be more sensitive to say, “I really feel for you because I went through a similar loss when my... died some time ago. ”
Palju taktitundelisem oleks öelda: „Tunnen sulle südamest kaasa, sest ma kogesin samasugust kaotusvalu, kui mu... mõni aeg tagasi suri. ”