Yes, this could be implemented in a separate add-on, as it is not quite suitable for AI Bots, OpenAI provides a separate tool for this:
https://platform.openai.com/docs/guides/moderation
But you need to understand that all messages on your forum will be forwarded to OpenAI. If you are...