I make mine as groups, not a repeating group. I put a number as the data type and set the numbers as datasource conditionally based on how many total pages there are and what the current page is.

Screen Shot 2024-07-25 at 1.34.53 AM