Below is our suggestion for the migration activity:
Always on High Availability DB Mirroring Logshipping SQL Always on High Availability :
It is possible to configure a SQL Server Always On availability group with a primary replica running on SQL Server 2017 and a secondary replica running on SQL Server 2022, but there are important considerations and limitations to keep in mind:
Backward Compatibility: SQL Server supports having replicas on different versions, but the primary replica must be on an older version than or