Thank you for posting in Microsoft Q&A forum.
According to Microsoft, the Microsoft ODBC Driver 18 for SQL Server can coexist with the Microsoft ODBC Driver 17 for SQL Server during installation. In other words, you don’t have to remove the older ODBC Driver 17 for SQL Server.
If you don’t want to keep the older version of ODBC drivers, you can remove them after installing the latest version.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".