If they are wages, I suggest you post them to the year the W-2 designates.
If the W-2 for 2023 is different from what you posted, you can file an amendment for 2023.