There are filters which can completely hide material with particular words or phrases (https://fedi.tips/filtering-your-timeline-to-hide-posts-on-mastodon/), but I wouldn't rely on filters alone.
It is too easy on any social network or search engine to see something unsuitable with a single click. You'd need some kind of closed-off network instead, sort of how streaming services have kids sections.