The openwrt download site has secret json files like these with the list of targets and subtargets: https://downloads.openwrt.org/releases/21.02.3/targets/?json-targets Use these rather than scanning the git repository, to avoid the two getting out of sync.
Fixes Github issue #1