I'm deducting the loss on my investment property {land} that I bought and sold at a loss. Can I deduct the real estate taxes that I paid all these years?

Bought in 2006 and sold in 2022. Paid real estate taxes for all those years and was wondering do I add them to my cost basis?