I have often wondered what the Founders would have thought of a pledge of allegiance to the federal government. I've come to the conclusion that most of them would abhor it.
Don't get me wrong. I revere the flag and principles for which it stands. I just think a pledge of allegiance flies in the face of the Revolution.
Since some here mention socialists, here you go: the communists and 9th Circuit agree with your position that the pledge of allegiance is a bad thing:
https://www.wsws.org/en/articles/2004/07/pldg-j01.html
The SCOTUS disagreed.
But of course we don't pledge allegiance to the government. Its to the flag that represents the country, and not the government.
Further along those lines, you'll note that soldiers and public officials pledge to uphold the Constitution, they do not pledge loyalty to any government either.
So as long as loyalty the flag doesn't contradict our prior allegiance to God, it is not idolatry though I have heard some people try to say so.
You are flat WRONG!
Its a pledge to the REPUBLIC, i.e. the form of government establish by the Constitution.
So in essence, it is a pledge to the Constitution itself.