Repaying signing bonus

I'm new to TurboTax and was hoping for some insight on bonus repayment. I joined a company in 2020 and received a signing bonus but when I left I had to return the bonus. It was over $3000. They asked me to return the net bonus, which was still over $3000. When I returned the bonus in 2021 they corrected my W2 and didn’t change the wage box, which I've read is normal since it was repaid in the following year. My income for 2020 includes the gross bonus, so I ended up overpaying on my taxes. They told me I would be able to claim a credit when filing 2021 taxes. The company and I are both based in NYC. Would I be able to use the section 1341 claim of right option for this?