cmake ctest bash completion issue

Howdy

Ran into an issue with the bash autocompletion file for ctest on bash version
BASH_VERSION 3.2.57(1)-release
Which comes with Sonoma

Gromgit from the homebrew folks has a fix for it

Could I get someone to take a look?

Thanks
P