In Libya the UAE and Egypt on one side and Erdogan on the other. If the civil war in Libya is prolonged, it is Erdogan who should be blamed. Regardless of their governments, I’ll side with Egypt and the UAE over Erdogan any day.
I regard the Turkish involvement as akin to the Kondor Legion in the Spanish civil war -- the goal is to help a future ally take control, and train up the Turkish and practice with new weapons systems and tactics. The Russians have used the Wagner Group and other mercenaries, and when the Turks knocked out all of the vaunted new Russian missile systems, the Egyptians moved up the troops. It's going to be a long stalemate. Meanwhile, Erdogan's got lousy relations with all his neighbors, and seems to just want to make those relations worse every day. The Russians are now being fingered for the recent coup in Mali (although the leftist Foreign Policy mag blames the US), which borders Niger, and Niger just signed a deal with the Turks.