Total Loss of property

Several years back I had purchased a "to be built apartment" in a future construction directly from the builder.  Contract was signed and money wired.. Construction in Ukraine took awfully long time and before the completion the war broke out, the builder went bankrupt with all dire consequences..  For me it's a total loss, the question is there a way to declare it to offset current/future investment gains?  On the form 4797 perhaps?

 

Ty.