IRA Deduction

I (thought) that I contributed the full IRA amount for 2021 in March of 2022 for the 2021, but my IRA company credited it to 2022.  Now that I am filing for 2022 and was ready to contribute for 2022 they say, "you cant, you already contributed".  The problem is that I took the 2021 deduction for the IRA contribution on my 2021 return.  Will I get audited?  How do I correct it?  The IRA company says there is nothing that they can do. Do I file an amended 2021 return and back the IRA contribution out? if so, I will have to pay, and I really want the IRA benefit.