The best counter to ChatGPT cheating that I’ve heard of is to get students to orally defend their assignments in class. No computer is going to come to your rescue when you have to explain why you wrote the code you wrote.
Encourage the use of ChatGPT and other tools. Put the emphasis on understanding what the code does and why. The tool may help to explain this to the student, but if so, that’s fantastic. No need to worry. Learning has occurred.