You can use quotes to escape characters in a DateFormat. However, you also need to escape quotes in a microflow expression, otherwise the interpreter thinks your format string ends. You can do this by adding a quote before you quote. Hence, your format string should be:
formatDateTime([%CurrentDateTime%], 'yyyy-MM-dd''T''HH:mm:ss')