I've recently been getting into Brave Goggles, and they have a `discard` feature so any site you don't explicitly mention get discarded from the results. For eg., see https://github.com/brave/goggles-quickstart/blob/main/goggle...
They use 1000 domains from Hacker News posts and do ranking and all that, but for your purpose, you can just have
$discard
$boost,site=wikipedia.org
$boost,site=stackexchange.com
$boost,site=gitlab.com