QPLO

My employment was severed in February 2021 with my employer with an outstanding loan. I rolled over my retirement to a qualified IRA. I received a 1099-R that indicated the amount with code M1 in box 7. I repaid the total amount in February 2022, prior to filing my 2021 taxes. When my taxes were filed this was listed as taxable, but I was  under the impression this would qualify as a QPLO and since the full amount was paid, would not be taxable income. I am wondering if my taxes should be amended to not include this as taxable income?