Bulk Redirect Rules and Lower Function

I am trying to make one of my bulk redirect rules case-insentive. I tried using the expression in the rule lower(http.request.full_uri) in $shortcodes

But I get an error, and it won’t save. How do you get this to work? Case-insensitive redirects are a fairly common use case, surely there is a way to do it… What am I missing?