I have a rental property. Was looking to rebuild a shed on my property. The builder took my $9k deposit but did not build and went bankrupt. Can I write off the loss?

They were supposed to build in 2023 but went bankrupt in 2024 about May/June