I don’t know what jurisdiction you’re in, and even though I’m a lawyer, I’m not your lawyer, and this isn’t legal advice, and I have never seen your contract,
buuut…
I would get some legal advice from a real estate or professional negligence lawyer in your jurisdiction if I were you. That situation has the stink of contract breach / negligent realtor all over it.