It wouldn’t be difficult to write this script as a darktable plugin, but I imagine you’d struggle to convince the maintainers to merge code to allow for searching or categorising based on a custom metadata tag.
I’m less familiar with other programs, but I don’t see any of the proprietary options implementing this.
Should it not be double foldable? It has two folds