[build][fix] check regexes: memorize checked regexes