Found the right solution to the not so clear question, hope it helps anyone interested.
Regex Goal --> match any chain but the ones that match the internal regex.
Regex --> ^((?!d/\w+Impl\.java).)*$
Using negative lookahead and the template: ^((?!regexp).)*$
Thanks for the support!!