It’s not free, you have to include the price of the solar panels you bought excess of in the cost because you can just remove those and sell them if they’re not needed. You essentially installed greater solar capacity to fuel an EV, so not free!
Selling solar panels is going to recover very little of the cost. Most of the cost is the labor and permitting. A lot of the rest is the wiring and inverters. Might as well use the excess power you generate to run a space heater/crypto miner, or net-meter it to the grid.