fix regex metadataPaths