Using regex for filtering

Is there any way to use regex to filter especific branches?

For example in a step:

I need to filter all versions branches like /^[vV]\d{3,}$/

if: github.ref == 'refs/heads/master' || github.ref == match-version-branch

We do not support regex at this point.  However, we do support a subset of patterns as part of the branch, tag and path filtering for the events. Please see for more details.