Rental expenses for sold property

I tried searching but couldn't quite ask it the right way - if my subject sucks, please tell me and I'll change it!

 

I sold my rental property - just last month. BUT, I started working on selling it last November. A lot of the expenses for repairs prior to sale were last year but some are this year. Also, the rental is in another state.

 

So the question is: Should I (and can I) claim all of the expenses for repairs/etc, on my 2021 tax forms? The reason I'm asking is because, as I said, this is in a different state and if I wait until next year, I won't be filing taxes for that state - I don't think unless I have to file for the sale of the house in which case ignore this.

 

Hope I'm not being too confusing and thanks!