Hi,
Unfortunately you cannot rename a management server or any other "core component", you'll need to re-build the servers.
So in short:
Install the new SCOM management & gateway servers, then move across agents that are reporting in to the old management server and then decommission the old MS.
In this case you could consider a side-by-side migration, and if you're running an older SCOM version (2012 R2, 1801, 1807 or 2016) then this is the perfect opportunity to upgrade it to SCOM 2019 by installing a new SCOM management group, get newer
Windows Server and SQL Server versions.
Best regards,
Leon
Blog:
https://thesystemcenterblog.com
LinkedIn: 