Yes, Overcooked 2 is cross-platform between Xbox One and PS4/PS5. This means, even if you play on a PlayStation, you may connect with other gamers on an Xbox One.
Can you play overcooked cross-platform?
The base game of Overcooked 2 has very limited crossplay. Those playing on Steam and the Epic Games Store are able to play together on PC with up to four players. Console users on PS4, Xbox, and Switch are not able to play Overcooked 2 cross-platform with friends.
Can PC and Xbox play Overcooked 2 together?
Overcooked 2 Crossplay Xbox, PC, and PS4
Before the announcement, there's no cross-platform play for overcooked 2 as of now. It's only possible to play online with other PC users. But, the cloud that is present saves and progresses you back and forth (Xbox to PC) since there is no crossplay available at present.