On Windows I can do this in File Explorer by searching "NOT *.mp3" for example, to return a search of all files within a directory besides mp3s. I do this routinely to clean up my music library when working on metadata, wondering if there's a mac equivalent - if there is, I can't find it!