Based on the thoughtful recommendation by @Bawolff in T191978#5704225 we want a shell script that can be executed by anyone with shell access to WMF production servers. The script should accept a single regular expressions pattern as its input, and return the dbname and filter ID of each filter that matches that reg exp pattern.
This script will be used when Wikimedia-abusefilter-global-maintainers need to identify a list of filters that need to be worked on, in preparation for or in response to a change in AbuseFilter code that would impact those filters.