I assume that you want this for a Tesla HPWC? This would work for the charger but it does not meet code properly. A 5-20 outlet is for 120V 20A circuits, while a 6-20 is for 240V 20A circuits. Your car will run on just about any voltage but that is not universally true for other things.
If you run 240V from the breaker box on existing wiring, that would work better. You'll need a different circuit breaker. I'd get an electrician to do that properly.