Replace an object based on its path

Hi everyone, do you know id there is a way to replace one object for another based on its path? the replace member and replace index don’t seem to work.
To give an example, I have a curve nested at {2,1,0} which I would like to repelace with another one…

you can use Replace Members