Updated handling of wildcard regex when written to remap.config