When chatgpt and other AI creates text there are repeating patterns that could reveal an algorithm was at work. If the confidence level is high enough, it is flagged as AI generated. Synonyms may not really help much.