yeah, there is; like in https://github.com/mathquill/mathquill/commit/481ae69f6b96ac5df6b17b31b9bbbcb664879144#L0L109, you want to the regex to be a whitelist (looking up the spec...)