Added regex character token tests, made character escapes more lenient

Now you can escape any operators anywhere, except "-" which can only be escaped in a character class. } and ] are now accepted as operators in the regex state as well, instead of characters.