your local law probably has a different opinion on that
The only "banned books" lists apply to school libraries/librarians.
I cannot possibly see what the justification would be for such a law. It's just words. It is no different than saying 'fuck' in front of a minor. It is clearly protected speech.