After you file

You need to have your employer issue you corrected W-2's (Form W-2c) for the years that are in error.  Then you will need to file an amended tax return for each tax year to report the corrected W-2.  Amended tax returns with a tax refund can currently only be filed for tax years 2020, 2021 and 2022.