Fix static variable regex