Bug: Repeater element context ItemId

I have recently come across a bug I haven’t noticed before and that has broken some features of my site.
I have a dropdown and repeater. When a user selects an item from a dropdown, that item gets added to a repeater. (The ID of the added item is the value of the item from the dropdown.) Each item also has a button that allows the user to remove the item.
The problem is that if for example the user adds an item with id “item1”, removes it, adds it back and then tries to remove it again, it fails because the event.context.itemId of the click event of the remove button returns “item1_p_1” instead of “item1”. If the user repeats the last two steps, itemId is then “item1_p_2”. This seems more like a feature/intended behavior because it seems like it thinks that there is already an item with this ID and therefore adds a suffix. The problem is that the item was removed before (so this feature has a bug?). And it’s strange because if I look at the data of the repeater the ID doesn’t have that suffix.
For now I have the following workaround which works for my case:

let itemId = event.context.itemId.replace(/_p_\d+$/, "");

But please fix this!

Thanks for reporting this issue. Someone from the team will contact you via email.

This issue is now resolved. Please let us know if you continue to experience any problems. Thanks!