FIX: better filter for groups search (PR #14255)

Follow up of https://github.com/discourse/discourse/pull/14216

Allow plugins to register custom filter with block

GitHub