For some time now, the authorities of some countries have been perfecting the future regulations to apply to autonomous cars, because there are already a few thousand in operation and the ultimate responsibility in the event of an accident is not clearly defined.
In a self-driving car, the "driver" is just a "user" who sits in the front of the car, but does not make any decisions about driving the vehicle.
In the event of an accident, it seems that the ultimate responsibility should be the company that provides the driving system. But the owner may also be partially responsible for the maintenance of the vehicle. A poor maintenance can affect the various sensors and therefore the driving system.
Currently there is no fully autonomous car that reaches Level 5 of autonomous driving. Those of Waymo reach Level 4 and have a person who remotely controls the routes they take.

Although there are still no legal regulations in this regard, in some countries they are thinking of implementing one for the automatic control of the traffic lane or ALKS (Automated Lane-Keeping Systems) that many cars already offer, indicating that the driver must be prepared to take control of the car within 10 seconds of receiving the warning from the car system.
Today the driver is ultimately responsible in the event of an accident, and I do not see clearly how and when it will change. We are many years away from the fully autonomous car, but close to many driving aids.
The "problem" is to transfer the responsibility of the driver to a manufacturer that does not know what the owner of a vehicle can do. And even more so after seeing how careless some Tesla owners are by playing video games while driving their car.
I have very serious doubts about any manufacturer ever assuming responsibility for what a person who buys one of their cars does. Whether we like it or not, we are responsible for the “stuff” we have and what we do with it.
And we can't forget that cars can kill people. And more if they are managed by an irresponsible person.