What you are describing is a medical device, not a consumer electronic device. The regulatory framework would be different; such devices would need to obtain FDA approval after demonstrating efficacy and safety. We already do this for hearing aids, for example, and it is also why companies that added hearing assistance features into their wireless earbuds, and ECG/SpO2 measurement capabilities in their smart watches, also had to secure FDA approval to make those marketing claims (even though these are not prescription medical devices).
Makers of "smart" glasses rely on the economies of scale to support the development costs of this technology; therefore, they are unlikely to want to restrict the marketing of these products to individuals who would use them as a medical device, as this market is substantially smaller. Of course, that doesn't mean it is ethical to bring such products to the wider market, nor does it mean they must develop or allow for the development of this technology in order to support the medical needs of the smaller market. Two things can be simultaneously true: (1) if not regulated, such technology would primarily be used by perverts and assholes intent on violating others; and (2) the technology would be useful and/or life-changing for people who have certain impairments.
Personally, I think these devices should require a doctor's prescription and be regulated as a medical device. A CPAP is (rightly) regulated as such, and it doesn't even have the kind of abuse potential that smart glasses have. We as a society need to push back hard on the Big Tech panopticon that has been foisted upon us. Laws regarding privacy are antiquated, written at a time when recording devices did not have the fidelity, miniaturization, digitization, data retention, and network connectivity that current devices possess. The concept of "no expectation of privacy in public" is out of date. We ought to have the right to not have our every interaction, movement, and excursion livestreamed for engagement, our likeness posted online without our consent for strangers to judge and mock and take out of context. We ought to have the right to a basic degree of dignity without needing to avoid public spaces because everyone and everything is recording us. And I do not trust any company whose business model is founded upon tracking and aggregating this data in order to sell it to third parties, to act in that interest, let alone make a medical device.