Have you tried this Drafts action for Obsidian?
Or, if you’re trying to export all, this script works in Drafts (I cannot remember where I got it from, but it exports all Drafts to the iCloud Drafts folder as .md):
let fmCloud = FileManager.createCloud();
let yourFolder = 'backups';
fmCloud.createDirectory(yourFolder, "/");
let draftsGroup = Draft.query('', 'all');
draftsGroup.forEach(function(myDraft) {
fmCloud.writeString(myDraft.processTemplate('[[safe_title]]') + '.md', myDraft.content);
});