Rian Johnson based the central character on Elon
(amongst other billionaires), but admits that the portrayal turned out to be closer to Musk than he intended:
https://www.forbes.com/sites/paultassi/2022/12/26/glass-onio...
https://www.forbes.com/sites/paultassi/2022/12/26/glass-onio...