Hi,
As you mentioned that SCOM 2022 does not officially support monitoring of legacy Windows Server OS (Windows Server 2003 and 2008).
You might consider use an older version of SCOM for legacy servers: You could potentially keep your SCOM 2012 environment running specifically for monitoring your legacy servers.