BUILD/MINOR: regex: avoid a build warning on USE_PCRE2 with -Wundef

regex-t emits a warning on #elif USE_PCRE2 when built with -Wundef,
let's just fix it. This was reported in GH issue #1369.
1 file changed