tag: Do not allow tagging with a SemVer range as the tag name

Fix #6082