I heard a news story about a teacher who addressed this problem by requiring students to work with ChatGPT to write their essays. This involved improving its drafts, looking up sources, stuff like that.
Can you do something similar? Give students the option to turn in ChatGPT's response, but they have to say that's what it is, and either explain why it's wrong, or prove somehow that it's correct (like with a different method of solving).