My results have been much like yours.
Another user recommended github copilot + Ahern’s urscript extension for vscode in this thread:
Since he wrote that comment, it seems that ChatGPT has become better, at least at distinguishing between URScript and python.
It’s pretty good for checking for syntax and logic errors.
It’s also good for documentation - pulling out variables, describing what they do, separating by local/global, etc.
As mentioned, you must check everything it does - Several times I’ve seen an error, pointed it out, gotten a “Oh, yes, I see my error - here’s the corrected version” – followed by the exact same error.