The SET/RESET statements are currently implemented using regular expressions in the ExtendedParser. They should instead be properly added to the grammar and parser.
In a second step, the ExtendedParser implementation for it can be removed. However, this would be a breaking change as key/value would then have to be quoted (as they are in other places, i.e. table options) and no longer be treated as SQL identifiers