Exclude only certain files, folders, file extensions from search. all others included


I’ve kinda messed up a project cause I execute regex upon whole project (changing “classic” callback functions to ES6 arrow functions ).
then I’ve to revert the changes back. what’s the best way to exclude both certain files/folders & file extensions (in this case scss, html). I expect some plugin possibly??