How to select the nth element that has the same identifier?

Yeah, try reading this.
Remember you should only use index in parent on the last “element” in the selector