This version should better handle backslashes and “ in Dorico commands.
Please note that this is a breaking change if you have manually added \\ and \” to make the previous version work. Now, commands should be used exactly as they are read from the Dorico log file.