I'm using stylelint and I need a regex expression for it's max-nesting-depth rule to ignore selectors which begin with both &: and @media
https://stylelint.io/user-guide/rules/max-nesting-depth/
So far I've tried the below without sucess:
"max-nesting-depth": [3, {
"ignore": ["/^&:/", "/^@media/"]
}]