If you filed the 2021 tax return and indicated that you did Not receive the stimulus payment but you actually received the payment, the IRS knows they sent the payment to you and will adjust your Form 1040 Line 30 for the Recovery Rebate Credit by removing the credit.
You do not need to amend the 2021 tax return.