I have a flow with an output like this, if the 2 words behind the number have the same item, then only 1 item is selected and the other index will be deleted. how to do this action?

I have a flow with an output like this, if the 2 words behind the number have the same item, then only 1 item is selected and the other index will be deleted. how to do this action?
Looks like you are using a List variable.
Check this out.
Remove duplicate items from list