After you file

if you itemize in 2022 you are entitled to take the amount that was taken to pay prior state taxes (but not the penalty or interest portion) even if you did not itemize in 2021.