Yea that confused me too. My accountant said it would have to go towards 2022 taxes. No idea if that is right.
If you are a cash basis corporation OR sole proprietor (and you probably are), you can count this in the year you received it.
You might get a letter from the IRS at some point, in which case you just reply and say "the check was received in January 2023, and it is included in the 2023 return."