Nice! Yea regex is crazy cool..
Btw, this is what I meant when fixing the host variable.
If that datasource is set to something that doesnt exits instead of the variable above, it will break it.
Thats probably why it doesnt work. So by using that variable, when you set the Telegraf datasource
The host variable should then work, as the HOST query runs on the correct data source.