Yeah, that's why if you need your power shut off to safely work on a main service panel, you need to schedule a service disconnect with the PoCo. This way the county/city is alerted of the permit, the PoCo is allowed to inspect the plan, and the upgrade/replacement is done above board. Of course, in my case, some overzealous line worker can still crap all over the parade, but at least I'm operating the way I'm supposed to and the PoCo is at fault.
You basically just admitted that Tesla violated county/city code by gripping and ripping your meter socket out to perform their own self-initiated service disconnect. Firemen are allowed to do this to make the home safe, but you sure aren't since that meter isn't your property. I don't think Tesla can make violating codes part of their standard operating procedure to add solar and batteries to homes.
The PoCo will be the ones to remove their meter after they disconnect your service safely. Then the PoCo reinstalls the meter (and tamper-evident ring/lock) after the home passes inspection where the inspector grants the meter release.
Yes, this all sucks, but the whole point of these rules is to prevent unauthorized work that affects the grid.