How to create a router rule for a wildcard?

The doc states this format

HostRegexp(`example.com`, `{subdomain:[a-z]+}.example.com`, ...)

There is also another (currently open) question about HostRegexp, so it seems to be not an easy topic.