Klar is a free AI spam filter for Apple Mail.
Enable it once in Mail's Extensions settings.
New installs flag suspected spam red so you can check its work. When you're ready, choose Move to Junk.
From then on, spam arrives here instead of your inbox.
Classification runs on your Mac. The Mail extension has no network access.
Klar is free on the Mac App Store.