fix regex that was not properly escaped