Revert "remove 2nd get_tag_regex"

This reverts commit 99f6cb287afd9f0619266d5dd5214237a078d5f3.