Musk is exactly the sort of rootless global elite that so many nationalist populists have a problem with… but he gets a free pass.
He gets a free pass from the white nationalist America first crowd because he's a white, South African apartheid nepo-baby which gives him extra cred with the anti-immigrant crowd. To them, he's one of the "good ones" (plus they really want his money).