I did a quick search on the word "taxes" in the New Testament and it's interesting to see that tax collectors are always grouped with sinners, adulterers, the greedy, the unrighteous, Gentiles...😄
I did see that in Luke 3:11-12 it appears that the tax collectors were authorized, i.e., had the authority, to collect taxes from the people, according to John the Baptist:
"Tax collectors also came to be baptized, and they asked him, “Teacher, what should we do?” He told them, “Don’t collect any more than what you have been authorized.”"
I do agree that when governments exceed what they have been authorized by God to do, that is, punish evildoers and praise those who do good (1 Peter 2:14), then they are acting illegitimately and can be morally resisted.