It's a great question. For this, we should really go back very briefly to what happened during the HTS-led rebel offensive that overthrew the country, because that tells us why Russia is still there.
During that offensive, as it was gaining ground, HTS, which is now the current leadership of Syria, reached out to the Russians and negotiated to keep the Russians from backing the regime to the very last moment. About halfway through their offensive, the Russians basically cut the regime loose, and that was the result of diplomatic engagement between the two. It's my understanding that there was no particular promise about the future other than the principle that the fall of the Assad regime did not mean that Russia would be kicked out immediately thereafter and discussions would follow.
Obviously, Syria's most important relationships right now are with Turkey, Saudi Arabia, the United States and with western countries, generally, including Canada. Russia is very far down the list. They do not have a friendly relationship with Russia at this stage, but they are trying to prevent the resumption of tensions. Russia backed the Assad regime to the hilt throughout the war. There's a lot of bad blood between Damascus and Moscow now, but they're trying to maintain a—let's say—normal relationship.
I think the future of those bases will be under constant negotiation between Damascus and Moscow. There will never be trust, but they will also try to avoid making unnecessary problems for each other. They'll look for shared interests where they exist, but I don't imagine they'll ever be allies.
