I've searched the internet from A to Zed and I've found what I was looking for ...
If you thought grep was powerful, wait until you get a hold of ast-grep, which takes it to a whole new level.