Nothing is installed on your Mac unless you were required to enter the computer password to install the program. If you did not do this and also did not provide them with any personal information, then you have nothing to worry about. It is not recommended to ever install any AntiVirus software as you can only expect problems with your computer after you install them and any price/subscription for their service is a waste of money.
If you did enter your computer password to install some software and now want to know how to remove it, then you can post the free EtreCheck report using the additional text option when posting and we can provide some assistance. The report contains no personal information. You can expect to enter your computer password here to install it because you are directing this action. That is how to prevent inadvertently installing Malware.
How to use the Add Text Feature When Post… - Apple Community
I don't believe MalwareBytes is still a free option. It used to be a great tool and it shows the Free Download link on their website, but I believe they now require a subscription. I hope someone can prove me wrong on this one, as it was something I recommended many times in the past.