We want to make a breaking change in T229947. To make sure that we're not breaking anything in production (very unlikely anyway), we'd need the following query to be executed for all wikis:
SELECT af_id FROM abuse_filter WHERE af_pattern RLIKE "set(_var)?\\(\\s*([^'\"\\s]|['\"][^'\"]+['\"]\\s*[^,\\s])"
I know that the query is not good looking (mostly because of the RLIKE), but the abuse_filter table is very small.
This task is non-public because some of the affected filters may be private. I don't think this information is exploitable in any way, though, so feel free to make it public.
As for the tags, since I don't know of any clear process to get query results in production, I've copied them from T193894.