Expressions cannot do anything that native functions can't do, so this is a non-question. There simply cannot be such a thing because the Repeater and Trim Paths have no properties that can be adressed in such a fashion. You have to rework it and use separate groups for each duplicate/ instance.