This is a follow-up to my previous (erroneous) issue.
My service was not detected.
The file I was provided has it defined like this:
service ServiceNAME
{
…
}
The file is scanned line by line and const service_regex requires { at the end of the line (which is why my service was not detected).
It works if I use
const service_regex = r"service\s(\S*)[\s]*\{*.*"
PS: in detect_services, there is an superfluous strip(line) when we are checking if it starts with "service".