Running workflow_dispatch on tags

Hello, there is an option to run workflow manually and select tag as a reference, but when I am trying to choose tag I got this message:
Workflow does not exist or does not have a workflow_dispatch trigger in this tag
My workflows configuration:

name: Example manual workflow
on:
  workflow_dispatch:

jobs:
  do-sth:
    ...