fix regex values which can't be compressed without brackets around them