Ignoring everything but specific subdomains

As the title says, I’d like to capture traffic only to particular subdomains. The docs give an example to allow all subdomains. But if say I wanted only to capture traffic for example.com/a, example.com/b and example.com/c, how would I do that? I’ve tried ^(?!example.com/(a|b|c)) (I’ve also tried escaping the forward slash), and, while it works in regex testers, mitmproxy has other ideas.

That’s not a subdomain, that’s a path. A subdomain would be a.example.com. You cannot ignore a specific path (the path is parsed after the ignore decision is made), but you could write a filter to hide it in the UI.