Would you rather have them only use it outside of school work where no one will point out that it can be wrong? Teachers could also ask questions on the studied subject in class to teach student that by copy pasting the output they are not learning much.
ChatGPT exist, kid will use it. Should adults guide them?
To make it more educational make it interact with the system and the user . For example I would have the program to show a list of real files from the os and prompt the hacker to delete it or not.