Before my swimming pool contractor recent filing for chapter 7 bankruptcy, I had paid him $56325. Can I claim a loss on my 2025 tax year for the amount of $56325?

Can I claim legal fees I incurred?