It'd be nice if we had something like https://github.com/copilot-emacs/copilot.el/blob/main/copilot-balancer.el so that the parentheses do not become unbalanced after completing with AI.