Note that the EU is proposing to do this [0]. The ZKP part is a bit of a WIP and there have been some questions about the quality [1].
[0] https://digital-strategy.ec.europa.eu/en/faqs/eu-age-verific...
[1] https://proton.me/blog/eu-age-verification-app-hacked