A bit of history:
I am long retired, but have been a Scrivener user since 2007. I gave up Word at version 6! Nisus Writer (Pro)[1] has been my word processor of choice for the last 20+ years; it is a great partner to Scrivener as its file format is RTF… it is built on the same Apple TextKit with extensive modifications, including a powerful macro language.
I realised that essentially I was using styles in Scrivener as a kind of markup, which I converted into final formatting in Nisus with a macro. At the same time I began exploring using markdown in Scrivener, particularly to output bare HTML that I could paste into the editor of a website.
I wanted something to challenge me mentally, so I was just beginning to look into using Pandoc or Quarto—LaTeX felt like too much to take on—when @nontroppo posted the thread about Typst, which seemed much more approachable. What struck me was that I could understand the Typst syntax for tables, for instance, much more easily than that in Pandoc (therefore Quarto), which was why I quickly concentrated on Typst.
Long story short, after trying for a while to produce what I wanted through the template @nontroppo posted, I thought it would be a good idea to try the Typst web app as a way of learning it, so I have been doing just that and converting some of my stuff there. The forum-users have been very helpful, and although I find much of the discussions somewhat impenetrable—most users seem to be mathematicians or computer scientists—I have been able to produce complex layouts, including margin-notes and other notes, footnotes, dynamic headers, etc.
The downside of Typst, in its current version, from your point of view is that it can only output PDF, or HTML using the CLI—they are in the process of developing HTML output on the web app. As you need .docx—it seems—that will mean Pandoc or Quarto, certainly for the time being.

Mark
[1] Sadly, no one is maintaining NWP any more, and the forum keeps returning “Bad gateway”; in spite of which it seems that you can still download and purchase it, which is very much off to my mind. So I can no longer recommend NWP to anyone!