Can I use variables in input queries in cart and checkout validation function extension?

@Liam is this still not possible? Is it on the roadmap? Could someone at least add to the docs. I just spent a few hours banging my head.