Earlier quoted context omitted.
Takes a goofy definition of terrorism to get Bay of Pigs to fit. A military attempt to overthrow a violent leader of another country doesn’t really land in the same category of shutting down hospitals and killing sick people with no political power.
Using violence to attempt to cause a regime change without formally declaring war, sounds much more like the traditional definition of terrorism to me [although maybe not the perfect fit], then randsomware which sounds like organized crime to me.
Trying to quickly or quietly overthrow a government is pretty much the opposite of that effect. You want a quick change and the end goal is power, not fear for the sake of fear.