How to change Hugo's naming convention of paginated pages?

I would like my website pagination URLs to be: http://localhost:1313/ subfolder/page-#

And not: http://localhost:1313/subfolder/page/#

How can I reach this result?

I tried editing the configuration file (hugo.toml), setting ’ paginatePath = “/page-:num” ’ , but whatever I enter in quotes it’s wrapped in slashes.

I don’t know of any way to accomplish this.