Putin has been described as a pale moth by his 00 agents; his cognitive skills have been described as below average. lol
You shouldn't overestimate Putin just because you don't like Erdogan. When it comes to strategic warfare, the Turks are actually quite successful in their operations in Syria. All attempts by the Americans to build a viable Kurdish state have been postponed to the next 100 years. Putin has given Assad a helping hand, but is now realizing that he has made a strategic mistake and is at a loss.
Putin's and Assad's strategy was the scorched-earth tactic to bomb the unwanted opposition to millions out of the country and regain majority violence as a minority government. Erdogan has put a spanner in the works and has currently even started an operation and is willing to send all refugees in Turkey and on their periphery back to Syria to stem the demographics against Assad again.
With the opening of the western border to the refugees, Turkey has even taken a tactical move and brought the western states to their moral limits, because drinking wine and pretending to be water and the literal demonization of Turkey is now being turned on the Europeans. The last word has not yet been spoken in Syria.