Bug in github actions `workflow_run` when special characters are used in name

workflows triggered by workflow_run do not work if the workflow name contains characters like [ ]

for example:

name: "[foo] parent"
on:
  push:
    branches:
      - "main"
    paths:
      - cloud/**
.
.
.

this parent workflow should trigger the child workflow

name: "[bar] child"
on:
  workflow_run:
    workflows:
      - "[foo] parent"
    branches:
      - main
    types:
      - completed
.
.
.

but it doesn’t trigger the child workflow,

removing [foo] from the workflow name makes it work

sample: Comparing 72314b1...74e8878 · starizard/gha-debug · GitHub