Creating a variable selector for a CustomVariableSupport, omit the option for the variable currently being edited

I am creating a selector for a CustomVariableSupport. In my selector, I want to load the possible variables as options which is done using the getTemplateSrv().getVariables()
Like so:

const selectorOptions = useMemo(() => {
    return getTemplateSrv().getVariables();
  }, []);

How can I Omit the variable that I’m currently editing from showing up on this selector? See below image for reference. I don’t want ‘$env’ to show here since that’s the variable currently being edited