The approach requires that you get the correct types for Column Expression node to recognize before passing them as a flow variable. I have used this before and looped through multiple formulas that were fed in by flow variable.