Also move valid regex into module scope