Fix regex error

Previously adding a task with [ or ( causes regex error.