Real money borrowed using Tesla shares as collateral (IIRC).
It's not like he borrowed the money from Space X by giving them TeslaBucks, and claiming that one TeslaBuck was worth $1000 USD. That would be dodgy as shit. And more analogous to what happened between FTX and Alameda.