function applyExcludeFilter(items, isFolder) {
		if (!excludeFilter || excludeFilter.length === 0 || items.length === 0) return items;
		return items.filter((item) => {
			let include = true;
			// @ts-expect-error
			const path = isFolder ? item + "/" : item.relativePath;
			for (const filter of excludeFilter) {
				const isRegexFilter = filter.startsWith("/");
				const relPath = isFolder ? path.slice(vaultPath.length + 1) : path;
				if (isRegexFilter && relPath.includes(filter)) include = false;
				if (!isRegexFilter && relPath.startsWith(filter)) include = false;
			}
			return include;
		});
	}
@param {(string|{relativePath: string})[]} items if folder, object list otherwise
@param {boolean} isFolder
@return {(string|{relativePath: string})[]}