People who are above the law and shoot at other people with impunity are combatants. What the fuck are we even talking about? Ideological rebellion against the state alone does not terrorism make.
If Al Qaeda had toppled the government and institutes the global caliphate, then they wouldn’t be terrorists.