Yahoo Redirect malware issues for over a year
I've been trying to get rid of the "imali yahoo search" redirect malware on Safari for over year now, about as long as I've had this machine, and it keeps returning. I consistently delete my cache, browsing history, and I've tried all the fixes on forums that I can find that involve deleting suspicious files and extensions on my computer, and I'm at my wit's end. Today through trying a fix on one of these forums I somehow managed to delete the shortcuts on Finder for Applications, Dropbox, and Creative Cloud, but did not fix the imali Yahoo redirect on Safari.
I'm not interested in paying for an app, please do not recommend one. There has to be a way I can fix this without paying for something that may or may not work.
Thank you for any assistance you can provide!
iMac 21.5″, macOS 12.1