The query shape for a native $search stage records the user's raw, unredacted search query when the aggregate runs through a mongos, instead of the anonymized {$search: "?object"}. This bypasses the query-stats redaction contract on a router.
On mongod the shape is correctly anonymized.