Use the GUI.
Put the edited files back to how they were before you funked with them first.
Since using Virtualmin, manually editing files is last resort for me.
Webmin, Servers, SSH Server, Networking, Listen on port - change to whatever.
Then the firewall.
Webmin, Networking, Firewalld, Add allowed port and add the new SSH port.
Once you verify that it’s working, delete the Service ssh (22) from Firewalld.
Good luck.