If you are using my bugfixed mod system, it shouldn't cause problems. But the original regexs were problematic. Edit2: to explain simply, your extra space is the equivalent to forgotting to include a semi-colon to your code so it blew up.
If you know regex, then modpanel.gd "regex_string_dictionary["VAR"]" will tell you more how it should be structured. Otherwise, this will need to be a Discord explanation as it will be quite lengthy.