Recep Tayyip Erdogan has welcomed interim Syrian president Ahmed al-Sharaa's commitment to fighting terror in the region.