A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
the communication should not be a problem.
kevin holman also wrote a great article about the upgrade from SCOM2019 to 2022:
https://kevinholman.com/2022/09/27/upgrade-from-scom-2019-to-scom-2022-checklist/
i think the "pitfall" is the system-requirement from the new SCOM2022 agent and the dependencies (.NET and powershell minimum versions)
i would update the agents during the migration. the new agent should be compatible with the old SCOM2019-environment, if you have to fallback.