Using variables in filter

Is it possible to use predefined variables in job filter or in regex of the filter?

Like that

deploy_123:
  only:
    - /^$CI_PROJECT_NAME-.*$/

I’ve tried, it didn’t work. Maybe I mistaken