Pattern group matching variables not expanded in string functions

@zef Apart from this issue I found out the following one:

```space-lua
function toSnakeCase(text)
  text = string.gsub(text, "([a-z])([A-Z])", "%1_%2")
  return string.lower(text)
end
```

called as:

${toSnakeCase('CamelCase')}

yields:

came%1_%2ase

but subgroup matching variables not expanded. Expected:

camel_case

I think it’s obvious.

Should I create a GH issue for this?