Fun fact; before trying to get his job, Scaramucci tweeted things in support of Democratic causes and critical of Republicans. So I don't think he's even a Republican at all. Just an opportunist.
And Trump is the very same way. Every single time things turn out badly for him, he cuts and runs when it comes to investments.