Regex constraints should not go away, like @rynowak says they are useful for backcompat. Though the inline resolver should use the built in (and properly tested) regex constraint and not make up a new one