Sold a rental property in 2021. Is the mortgage interest paid while unrented a selling expense?

The property was never rented in 2021.  The sale closed in March 2021.  I am unsure where to enter the  mortgage interest paid in 2021 from the 1098 form in Turbotax.  Would this be classified as a selling expense I can use to reduce the basis of the rental property?