[PATCH 5.10 14/19] scripts/tags.sh: fix incompatibility with PCRE2