I think `new RegExp` is redundant here