core: fix regex using servicegroup members *,service fails to expand after lookup

Fixes #3881