Moving the regex validators to main minimally-encoded-thread-permissions file makes the validator file a "leaf node" (except for tests) and resolves the circular dependency issue. Also updated validators to spread in base validators.
Depends on D9811