Skip pipeline after merge based on source branch

Is it possible to skip all jobs in master branch after merge request from branches doc/* ?
I use this expression for disable jobs in doc/* branches.

    - /^doc/.*$/§

But after merge accepted I have pipeline in master

How to disable pipelines for commit into master like
Merge branch ‘doc/*’ into ‘master’ ?

Did you ever find a solution to this problem? I’m facing something similar…