Better support for regex in variable syntax