This appears to just be about Sweden and Finland’s support for the Kurds, some of who are in Iraq and some in Turkey. Turkey doesn’t want them forming a new and potentially hostile nation on its border, and doesn’t want any support for that from within NATO.
Unfortunately for the Kurds they’re probably about to get thrown under the bus, since Finland and Sweden are now more concerned about the much larger, aggressive, unstable, nuclear-armed rogue state on their own border.
So, Turkey and Russia might not exactly be friends. Erdogan and Putin is another topic.
Also, be wary of what Erdogan and his people say. He's about as trustworthy as Putin, and when he calls those organizations "Terrorists" or that Sweden and Finland support them, then that's actually quite far from the truth and he wants something much less palatable.