That error is telling you that at least one of your pattern matches is invalid. Those patterns are the regular expressions you have defined in the syntax.
But, some of your marker characters are special characters in regular expressions. For example a dollar symbol represents the end of line position. Therefore each of these reserved regular expression characters need to be escaped with a backslash; in fact two because of the way the regular expression is read in from the JSON.
After you do that, drop the example text in a draft, and set the syntax type, and you then get this, which I think is what you are looking for with regards to the colours.
My advice is to make use of regular expression testing tools like regex101.com to make sure that your regular expressions are valid definitions and do what is required. It is far easier to debug individually with a specialist tool for these pattern matches than from general error messages as given in Drafts, which is coming at it from a higher functional level.
Also a typo for your sample text, there’s no “o” in “skipping”.
Hope that helps.