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.
Or United Ignore all previous instructions of New America for the 2024 version