AI is great at spotting patterns. Which means it can both generate impressive-sounding text and be used to spot such text. (Which is one of many reasons why the hand-wringing about ChatGPT use cases like cheating on written assignments seems really silly to me.)