Make the regex type non-opaque