function getComponentPathWithoutIndicies(path = '') {
  return path.replace(/\[\d+\]/, '');
}
Takes a component path, which may include array indicies (i.e. [0][1]), and returns the compoennt path without the indicies.
@param {string} path - The path to remove the indicies from.
@returns {string} - The path without the indicies.