Peter,
You are by no means alone in making career decisions that months or years later, hindsight tells you that the premises for the decision, including declined opportunities because of misplaced loyalty to an employer that did not deserve it, were incorrect.
Your situation confers a black eye on the entire industry.