If you want to garner goodwill with your former employer after years of not doing work and still getting paid a massive salary, then taking it public after a measly 9 days is pretty ridiculous. This guy knows he was in the wrong and is milking his notability to get paid anyway.
You have no actual evidence for your allegation that he did no work for years.
And not telling someone for 9 days that they are fired is simply not acceptable. I don't know the legal requirements in the relevant jurisdiction here, but firing people without telling them is usually either invalid entirely or at least a really, really shitty move. That HR is unable to confirm the employment state for 9 days is just absurd, that's no way to run a company.
Musk, being the head of numerous companies, should know better than to respond with anything other than "I'll follow up with HR".
When alt-right weirdos ask him crap, his response is just "looking into it". That's all he needed to do here.