Fixed regex that prevented underscores in variables working

Signed-off-by: Euan T <euantorano@gmail.com>