Right now we don't want to be panicking if the user provides an invalid regex.
We also don't really want to be throwing or returning an error, this will mess
with any live preview that is going on in external tools.
We should return the input and let any preview display the text. This will
happen if the user is doing some preview as you type kind of thing.