asked ChatGPT to write me a regex to serve as a string seperator in JS and it gave me a 'great' reply with explanations and the right output. only problem is that the regex it suggested didn't work the same way when i ran it myself.