When you install or update Lingo with Composer you get version 3.1.1 but it gives this errors when running php ./extensions/SemanticGlossary/maintenance/rebuildGlossaryCache.php:
PHP Deprecated: Use of $wgParser was deprecated in MediaWiki 1.32. [Called from Lingo\LingoParser::parse in extensions/Lingo/src/LingoParser.php at line 82] in includes/debug/MWDebug.php on line 377
PHP Deprecated: Use of wfGetCache was deprecated in MediaWiki 1.32. [Called from Lingo\LingoParser::getLingoTree in extensions/Lingo/src/LingoParser.php at line 145] in includes/debug/MWDebug.php on line 377
PHP Deprecated: Use of ParserOutput::addModules with non-array argument was deprecated in MediaWiki 1.38. [Called from Lingo\LingoParser::loadModules in extensions/Lingo/src/LingoParser.php at line 364] in includes/debug/MWDebug.php on line 377
More info in T313533 and T313534
But when you install or update Lingo with Git you get also version 3.1.1 but it doesn't give those errors.
The most likely option is that Composer is not installing the most recent version. The page on Packagist shows this: "This package is not auto-updated."