How to access the parent repeating group from an embedded repeating group

It’s a bit of a hack but you could put a group in the main repeating group set to number and the datasource to current cells index, you can also put a second group to be the data type and the source to this cells item.
You should be able to refer to those groups from within the second repeating group