@Joe9
That seems correct to me, so are the files that you create with the flow now able to open or is this still an issue.
I also thinking there may be an issue with the GET ATTACHMENTS, this will get all of them and then arbiturlly rename them with DOCX or HTML extensions. This may be the issue why you cannot open them when you go to the SharePoint site.
I cannot help with what I think needs to be done by identiftying the file types, HTML or DOCX then processing the different types correctly. I think that is for a different post. Although thinking about it there is dynamic content that has a filename with extension.

Regards,
Andrew