Fix syntax bug from misapplied regex