### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

The provided example does not put a message in SQS.

### Expected Behavior

The provided example puts a message in SQS.

### How are you starting LocalStack?

With a docker-compose file

### Steps To Reproduce

The following scripts returns no items in SQS, but it should. The bit detail: foo is not matched.

```
awslocal events create-event-bus \
    --name detail-bus-1

awslocal sqs create-queue \
    --queue-name "detail-sqs-1"

awslocal events put-rule \
    --name "detail-rule-1" \
    --event-bus-name "detail-bus-1" \
    --event-pattern '{ "detail": { "foo": [ { "exists": true } ] } }'

awslocal events put-targets \
    --rule "detail-rule-1" \
    --event-bus-name "detail-bus-1" \
    --targets "Id"="detail-target-rule-1","Arn"="arn:aws:sqs:us-east-1:000000000000:detail-sqs-1","InputPath"="$.detail"

awslocal events put-events --entries '[{"DetailType": "test", "Source": "aws.test", "Detail": "{ \"foo\": \"bar\" }", "EventBusName": "detail-bus-1"}]'
awslocal sqs receive-message --queue-url http://localhost:4566/000000000000/detail-sqs-1
```

### Environment

```markdown
- OS: macOS 13.3.1
- LocalStack: 1.4.0
```


### Anything else?

_No response_
def _put_events_with_filter_to_sqs(
            pattern: Dict,
            entries_asserts: List[Tuple[List[Dict], bool]],
            input_path: str = None,
        ):
            queue_name = f"queue-{short_uid()}"
            rule_name = f"rule-{short_uid()}"
            target_id = f"target-{short_uid()}"
            bus_name = f"bus-{short_uid()}"
            sqs_client = aws_client.sqs
            queue_url = sqs_client.create_queue(QueueName=queue_name)["QueueUrl"]
            queue_arn = sqs_get_queue_arn(queue_url)
            policy = {
                "Version": "2012-10-17",
                "Id": f"sqs-eventbridge-{short_uid()}",
                "Statement": [
                    {
                        "Sid": f"SendMessage-{short_uid()}",
                        "Effect": "Allow",
                        "Principal": {"Service": "events.amazonaws.com"},
                        "Action": "sqs:SendMessage",
                        "Resource": queue_arn,
                    }
                ],
            }
            sqs_client.set_queue_attributes(
                QueueUrl=queue_url, Attributes={"Policy": json.dumps(policy)}
            )
            events_client = aws_client.events