Based on the error your receiving I believe you are trying to run SQL Server on a RHEL 7 VM. Please correct me if I am misunderstanding the issue.
The instructions on the documentation page are written for RHEL8. Based on the error I believe you have added the incorrect yum repo. Remove the installed mssql-server and then try again using the RHEL 7 repo.
yum remove mssql-server curl -o /etc/yum.repos.d/mssql-server.repo https://packages.microsoft.com/config/rhel/7/mssql-server-2019.repo yum clean all
Hope this helps! Let me know if you are still having issues or have any questions.
Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.