Safari isn't the solution in this case as they were actually the first ones to heavily restrict adblocking. Manifest v3 is inspired by what they did.
It’s also opened up somewhat in recent years. While I personally stick with Safari’s Content Blocking feature for performance reasons, 1Blocker and others do have a JavaScript-based option these days.