Unfortunately you have to list them one by one. There’s only 1 glob section that allows that syntax.
You can use template editor to make the config for you.
exclude:
{%- for s in states%}
{%- if 'echo' in s.entity_id %}
- {{ s.entity_id }}
{%- endif %}
{%- endfor %}