RDKit substructure filter for unsubstitued rings/nitrogens

I’m currently attempting to utilize the RDKit mol substructure filter to sift through a chemical library. However, I’ve encountered difficulty specifically when attempting to filter unsubstituted phenyl rings. My objective is to exclude all phenyl rings lacking substituents or containing NH instead of N-C from amides within the main dataset.
The substructure input is generated using MarvinSketch. Nevertheless, upon applying the filter, it seems unable to differentiate between substitution over the ring and its absence, likely due to implicit substituents being bypassed.
Could you kindly advise on any potential solutions to address this issue? Any recommendations would be greatly appreciated!