I must say, Russia and Turkey have the most inscrutable relations. Didn’t the Russians sell the Turks an AA system (same kind that brought down that airliner over the Ukraine) only two maybe three years ago? Now they’re on opposite sides in the Libyan civil war?
Turkey bought Russian S-400 missiles designed to down NATO planes. For the US, that’s a problem
https://www.cnn.com/2019/07/13/europe/turkey-russia-missiles-nato-analysis-intl/index.html
What a mess. Ironically it was Turkey that shot down a Russian fighter in Syria.
Yes, the Turks also shot down a Russian Jet back in 2015, killing the pilot, and more recently have had several skirmishes along the Turkey/Syria border. Definitely a hot/cold relationship.
Turkey supports Sunni jihadists (ISIS, al Queda, Muslim Brotherhood).
They (Erdogan) are positioning to be the main State supporter of fundamentalist Sunni takeovers in the region - a new Ottoman Empire.
In Libya, Turkey is supporting the Muslim Brotherhood (and the rest of the International jihadist witches brew of groups), including recruiting them directly from Syria, and running them in Libya.
The other side of the conflict (anti-jihadi) includes Egypt, Saudi Arabia. likely the USA (covertly), and Russia.
North Africa, like the Middle East, is a complicated series of relationships, where everybody is friends with some countries on some things and enemies with the same countries on some differing sets of things - and then they shift every once in while.
There is one thing always to remember. Every Tsar at least since Peter the Great has wanted Constantinople, the Bosporus, and the Dardanelles. Erdogan is playing with Fire.