{ and } need to be escaped in regex