using uBlock logger I noticed:
/^https?:\/\/(?:[a-z]{2}\.)?[0-9a-z]{7,16}\.com\/[a-z](?=[a-z]{0,25}[0-9A-Z])[0-9a-zA-Z]{3,26}\/(?:[1-5]\d{4}|[3-9]\d{3})\??(?:_=\d+|v=\d)?$/$frame,script,xhr,popup,3p,match-case
and
/^https?:\/\/(?:[a-z]{2}\.)?[0-9a-z]{7,16}\.com\/[a-z](?=[a-z]{0,25}[0-9A-Z])[0-9a-zA-Z]{3,26}\/(?:[1-5]\d{4}|[3-9]\d{3})\??(?:_=\d+|v=\d)?$/$script,redirect-rule=noop.js
which depend on each other, but are not supported by Brave completely so they get discarded causing the popup to happen.
The first problem is in the rule options, it uses $popup and it is not supported by Brave so any rule with it will get completely discarded, $redirect-rule is supported by Brave but it technically needs the other rule to work, because it only redirects what’s been blocked.
The second problem is in the regex, because the regex is not completely compatible with Brave, which is the positive lookahead part (?=)
(just like if it had (?!)
)
But that rule blocks https://ga.pertuseslik.com/rb0mQYDgYBC6OtxEo/55710
on my side.
So you can add ||pertuseslik.com^
as a custom filter and see if that works better for you.
For the way the lookahead works, I always ‘fixed’ the regex by removing the whole (?=). I don’t even know why it is there because it is not doing anything taking into account the next part of the rule.
But you can use the regex version too, without the positive lookahead and it might work better since it will cover more websites until Brave adds more compatibility for it.
/^https?:\/\/(?:[a-z]{2}\.)?[0-9a-z]{7,16}\.com\/[a-z][0-9a-zA-Z]{3,26}\/(?:[1-5]\d{4}|[3-9]\d{3})\??(?:_=\d+|v=\d)?$/$frame,script,xhr,3p,match-case
and
/^https?:\/\/(?:[a-z]{2}\.)?[0-9a-z]{7,16}\.com\/[a-z][0-9a-zA-Z]{3,26}\/(?:[1-5]\d{4}|[3-9]\d{3})\??(?:_=\d+|v=\d)?$/$script,redirect-rule=noop.js
one will not have the $popup, and while match-case is also not supported by brave either, rules don’t get discarded by having it, so it is not negative to have it.
sometimes things are done differently by region but this will be enough, at least in my case it works, and I have seen many websites needing that regex to work.
Edit: checked stable and it supports $redirect-rule so I fixed post accordingly.