There are a lot of techniques being shared online by teachers on how to automatically detect ChatGPT output. It is very doubtful that any of them work well, or if they do, that they do it consistently. Certainly not enough to accuse someone of cheating without other evidence.