ParseQueryToRegex

Parses regex from the input so that stopwords are converted into valid regex