Recently, I've found a solution, but it requires access to view history, tho developer says, that he does not sell any data and the only data he gets is your account email to enable sync across different devices(useless, but optional feature). The account creation is also optional. If anyone can prove its privacy claims, I'd be glad, because I hardly believe him as the extension is FREE.
It's called "Super Agent" and here's the link: https://apps.apple.com/ru/app/super-agent-for-safari/id1568262835?l=en
This extension automatically selects the cookie settings you want. That means that you won't see any more popups and your privacy should be maintained.