Terrorism is a very plastic term, that in the modern era is only applied to non-state actors who act against Western interests. Many, many, many allies of the West would be considered terroristic if they didn't align with Western goals. The Northern Alliance in Afghanistan would be considered terrorist, as well as many of the Syrian and Libyan allies during the Arab Spring. In those instances, they aren't labeled terrorist, but are instead called freedom fighters.