[fix] perf optimization so we have a precompiled regexp