You can detect the explanations, but not the code because the code could come from anywhere or chat GPTChatGPT might just be reading content from a programming languageslanguage's official site.
Why would you ban code generated by chat GPTChatGPT when other users will post the same exact code from either Python's official docdocumentation site or, Java, or C#.? So just let it go,go; don't even try to detect as some other modsmoderators advised. Detect the code explanations or code that does not compile posted from chat GPTChatGPT, otherwise just stand down.