better handle dim extraction regex cases