Monitor EC2 instance by tag

I have some AWS EC2 instances that I want to monitor with Prometheus.
I want to monitor only instances that have tag name services that include API
examples of a tag value: reciver,jobs,api,mailer
so if in tag services there is api then I want to monitor this instance.
the filter section doesn’t have regex value.
how can I do it?


I found a solution:

- source_labels: [__meta_ec2_tag_Service]
regex: .!api.
action: drop