Officially they're charged with espionage. The beneficiary wasn't specified, which lead to speculation that it is China, since if it were US or any other Western country, the official propaganda would be running amok with it.
Admitting you are wrong and made mistakes is sort of an impossible task for despot dictators though. He has spent decades killing or jailing anyone who told him something he didn't like, so everyone learned to tell him good news.
It's part of the reason why the initial invasion went so terribly; Putin's analysts told him Kyiv would bend over immediately, and that the public would welcome them as liberators.
Putin smells so much of his own farts that he bought it completely. The analysts were then shocked when Putin said "Okay, invasion today"
Who admits to waging a war of aggression though? Putin is framing this as an act of defense, he says he is acting to prevent Russia's enemies from destroying it.
When in modern times has an aggressor ever framed the aggression in terms different from a righteous defense?
If Russia actually had separation of powers etc, it would be the courts finding that the war is indeed a war of aggression, of which there is of course ample evidence.
As things are, if he's still alive by the time regime in Russia changes, that will probably be (one of) the law he will be prosecuted under.
They’re getting arrested because they promised Putin an unstoppable weapon and now he looks like a dumbass.