I think that POU variable declarations do not want function calls in them or even variables assigned to other variables.
The only way to have variables in your declaration is to use VAR_CONSTANTs. You will still have to do some legwork, but it can make larger-scale substitutions easier to manage.
There is also a way to use dynamic values using pragmas (I never really use pragmas although, so Im not certain of how powerful it is).
Coming from more standard programming languages, this one has similar rules and constructs as C, but not nearly as much flexibility, dreadful syntax, and nothing even resembling 'void' types. I ended up using python templates to help generate POU variable declaration headers because the allowed syntax is quite strict, leading to excessively verbose declarations.