The entanglement of Iranian interests in Syria is much more complicated than expelling every boot. It is financial, ethnic, religious, social.
Especially as long as Israel remains in the Golan, Syria is not going to cut ties with a longtime ally that has helped it fight ISIS and provides a counterweight to Israel and Turkey.
Iran is on the verge of an internal war.
All you stated is true, but yes it is a complex brew.