[PATCH 5.15 18/22] scripts/tags.sh: fix incompatibility with PCRE2