Here is how to compile a regex that inside the `Regex` module: https://github.com/meh/elixir/blob/02a59cba1c26a4e06754111eeb5ba4b5aa1d25c2/lib/elixir/lib/regex.ex#L335