I don’t know if you realize it but the template you suggested reports a list of all entities managed by the MQTT integration. In other words, it’s the same as simply this:
{{ integration_entities('mqtt') }}
For omcdr’s application, three years later it’s now possible to do this:
{{ integration_entities('mqtt') | select('search', '^sensor\.0x001') | list }}