If you have the chat with ChatGPT still open where this was produced, just ask it if it's cool if you use the code under MIT license. IF the AI has any rights, then it can release it under MIT. If not, it's public domain anyway.