When to deduct state tax refunds that are forwarded to next years estimated state taxes on federal returns.

I did not file my 2019 state tax return until 2021 and had the state refund applied to the 2020 state estimated taxes.  Do I use this refund as a federal deduction on the 2020 federal tax or 2021 federal tax?