Migrate SQL server 2014 to SQL 2019 and the application should not affect due to that change? You want to still using the old connection string for new SQL server connection. If so, suggest you creating an Alias for SQL server 2019 instance as below screenshot, then you did not change the connection string when using new SQL server instance. If I misunderstood your issue, please let me know.
Please refer to the blog Overview of SQL Server Aliases.
By the way, each availability group listener requires a DNS host name that is unique in the domain and in NetBIOS. The DNS name is a string value. This name can contain only alphanumeric characters, dashes/hyphens (-), and underscores (_), in any order. DNS host names are case insensitive.
Refer to MS document Requirements for the DNS Name of an Availability Group Listener.
If the response is helpful, please click "Accept Answer" and upvote it, as this could help other community members looking for similar thread.