public KeyPath index(String index) {
		return extend(makeKey(index));
	}
Create a new path by appending the given element index

<p>
This does the same as {@link #key(String)} but uses brackets instead. For example, if this
path is "{@code Processes[2].Threads[0].Registers}" and {@code index} takes the value
"{@code RAX}", the result will be "{@code Processes[2].Threads[0].Registers[RAX]"}.

@param index the new final index
@return the resulting path
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/model/target/path/KeyPath.java