How can I create a privileges that select content not equal in maven2

In our team, we have some packages which name starts with com.company.libcore, and the others are com.company.{not libcore}(the {not libcore} means many other paths), now we want to create a privileges that only allow to push to the com.company.{not libcore}, how can I do that?

I believe you could create a content selector using regex that would prevent matching the segment.