I'm sorry you went through this. I've experienced the same thing with sociopathic bosses. These monsters weoponize their positions of authority against people they feel intimidated by. But sooner or later they do indeed get what they deserve.
Alejandro Diaz writes about culture, politics, and the workplace. His new business, D & E Management Solutions, Embraces Humanity at work https://dandems.com