Yeah, the French Revolution's Reign of Terror example is mentioned as being the model for Lenin's
Red Terror, and in the spoiler a few sentences are in bold:
The Red Terror in Soviet Russia was justified in Soviet historiography as a wartime campaign against counter-revolutionaries during the Russian Civil War of 1918–1921, targeting those who sided with the Whites (White Army). Bolsheviks referred to any anti-Bolshevik factions as Whites, regardless of whether those factions actually supported the White movement cause. Leon Trotsky described the context in 1920:
The severity of the proletarian dictatorship in Russia, let us point out here, was conditioned by no less difficult circumstances [than the French Revolution]. There was one continuous front, on the north and south, in the east and west. Besides the Russian White Guard armies of Kolchak, Denikin and others, there are those attacking Soviet Russia, simultaneously or in turn: Germans, Austrians, Czecho-Slovaks, Serbs, Poles, Ukrainians, Roumanians, French, British, Americans, Japanese, Finns, Esthonians, Lithuanians ... In a country throttled by a blockade and strangled by hunger, there are conspiracies, risings, terrorist acts, and destruction of roads and bridges.
— Trotsky (1920)
He then contrasted the terror with the revolution and provided the Bolshevik's justification for it:
The first conquest of power by the Soviets at the beginning of November 1917 (new style) was actually accomplished with insignificant sacrifices. The Russian bourgeoisie found itself to such a degree estranged from the masses of the people, so internally helpless, so compromised by the course and the result of the war, so demoralized by the regime of Kerensky, that it scarcely dared show any resistance. ... A revolutionary class which has conquered power with arms in its hands is bound to, and will, suppress, rifle in hand, all attempts to tear the power out of its hands. Where it has against it a hostile army, it will oppose to it its own army. Where it is confronted with armed conspiracy, attempt at murder, or rising, it will hurl at the heads of its enemies an unsparing penalty.
— Trotsky (1920)
While it may not seem to apply to Ukraine, ask the question of "if Russia is kicked out almost fully or fully from Ukraine, how does one stop the currently cooperating Ukrainian groups from dividing and fighting each other again?"
I don't know all the groups which are working together, but they weren't cooperating before and that was only partly caused by Russian sock-puppet'ing. If Ukraine can rebuild from this, it seems they will need to rebuild around "representation for all" and not around "only one of the currently collaborating groups will hold power in the end". Ukraine is working on kicking the external Russian influences out of Ukraine, both militarily and politically, but there will be an internal struggle between Ukraine's currently allied forces. Even if this struggle starts with political pushing and shoving, these groups have become accustomed to escalate quickly to the use of weapons.
How does one mitigate this, and prevent "the dominant faction killing off important leaders from the weaker factions"?
As importantly, how does one mitigate the external Western influences that will seek to profit by creating divisions between Ukrainian political groups?