I guess the events EVENT_* constants are not defined anywhere in the official source code and it thus does not find it properly then.
Glad it worked for you with the other generated files, where they are defined as functions to let auto-completion recognize and find them:
Code:
--- @param addonName string
--- @return void
function EVENT_ADD_ON_LOADED (eventId, addonName) end