After you file

generally the person who wants to be listed as taxpayer would file the amendment of the return they submitted.

Since you  already filed 2022 tax return,

the person who is  listed as taxpayer for 2022 should file the 2021 amendment.

@jassheph98