adjust section numbering for quarto docx output

I have been using rmarkdown/knitr for a few years now with no issues at all. Recently, I asked if I could help a colleague place their work in R in a report using quarto. Unfortunately, this colleague works with other staff that are not familiar with R so they are forced to make all reports using OOXML (*.docx) files and cannot use pdf, html or other output formats.

One of the main issues that I am having is with setting up automatic page numbering, the document needs to number the frontmatter of the document with lower case roman numerals, then start the next section (body of the document) with page 1, then continue that same numbering until the appendices. The appendices should be numbered "a1.1" for page one of appendix one, "a1.2" for page two of appendix one and "a2.1" for appendix two page one and so on...

I have tried creating a template reference document using ⁠pandoc, where the first section is numbered with roman numerals in the very first section, then the next section, which is not linked to the first starts the numbering at 1 and so on. The quarto output does not seem to keep this formatting from the reference document. I have not even started working on the numbering for the appendices yet.

I would post a reprex here but I don't have a way to upload the reference document. Can someone please help me with this?