It's worth noting that the common complaint about systems like this, which is that they could cause dangerous conditions during power outages when people expect the power lines to be unpowered, is addressed by electronics that only feed power when they detect an active mains.
All solar inventors connected to public electric grid have to detect this state and disconnect. You are not allowed to connect arbitrary inventors to electric grid, they have to be compliant with IEEE 1547, UL 1741.
https://www.aforenergy.com/what-is-anti-islanding-in-solar-i...
https://www.iee-business.com/knowledge/wind-solar-hybrid-sys...
The households which installed solar inverters to supply electricity in case of grid blackout really have look into anti-islanding.