Had the same situation. Just get the mobile connector adapter from Tesla. The extension below would probably work well.
https://www.amazon.com/Parkworld-884937-Industrial-Extension-3-Prong/dp/B07K2C6Z7M/ref=mp_s_a_1_9?crid=2WAWI07B33ZP7&keywords=dryer+extension+10-50+nema&qid=1679552694&sprefix=dryer+extension+10-50+nema%2Caps%2C136&sr=8-9