How did you embed the ruffle player on itch?
I downloaded the “self-hosted” ruffle.js from here, and added the given <script> tag for including that file into the default HTML file that got exported from Flash. Then I included the HTML file as index.html along with the SWF and ruffle.js in a zip file which I uploaded to itch as an HTML5 game. I think it worked just like that.