referring to the AI hallucinated comment above, this isnt true. AI has hallucination, but not in this case.
SNS subscriptions have filtering capabilities , thats true.
to apply filtering on SQS you use event source mapping. https://docs.aws.amazon.com/lambda/latest/dg/with-sqs-filtering.html
good luck