public static String makeKey(String index) {
		return "[" + index + "]";
	}
Encode the given index as a key

<p>
When indexing elements, no brackets are needed. The brackets become necessary when used as a
key, e.g., when specifying an index within a path, or as keys in a map of all children.

@param index the index
@return the key, specifying an element.
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/model/target/path/KeyPath.java