asterisk -V
Asterisk GIT-certified/20.7-0df958f920
I modified the function to this regex: preg_match('/Asterisk (?:SVN|GIT-)?certified\/(\d+(\.\d+)*)(-(\S+))?/', $verinfo, $matches (and changed additional to matches[4] and it then reloaded and worked as expected.
https://github.com/FreePBX/framework/blob/fd8ab81f678e74bb562eb6c0a01efcd5daebf899/amp_conf/htdocs/admin/functions.inc.php#L325C1-L327C21