How to run job only when commit has certain tag?

hi, perhaps I’m trying to do it in a wrong way, this is my first time with GitLab, so please let me know if there’s a better way.

Our commits are tagged e.g. by ‘git tag’. How to rum a job in ‘.gitlab-ci.yml’ not if a tag is present but when tag has certain value?

In the documentation mentioned

job:
  only:
    - tags

bot nothing mentioned about tag content.

Could anyone advise, please?