I know I'm in the minority, but I actually like the pledge, even if it's reminiscent of authoritarianism (and I strongly believe it should be optional). But that's because my interpretation was always "I pledge allegiance to the flag of the USA, and to the [ideals and values of the] republic for which it stands." I viewed it as an affirmation of the commitment by myself to the "liberty and justice for all" we wanted, not as a statement of fact that no matter what the current leadership does, you should be loyal.
All that being said, I could see a contribution of the pledge to an environment of the nationalism or jingoism that led to MAGA. I just don't blame the pledge; I blame the leaders, politicians, media personalities, and individuals that drove MAGA to become mainstream.