This has been a thing for decades now at least in Mercedes (S & E) and BMW (5+).
And it’s not just the camera alone, car headlights have a special projector that selectively illuminates pedestrians (or just does a double flash at them). Works as intended, but few people opt for it … and gov are still not mandating it (like automatic breaking).