And Ecclesiastes is best read as satire (meant by its author to critique and mock the vain pursuits of human life, ultimately guiding readers to a deeper awareness of divine wisdom).
I think ultimately for fwdude to his question: we don’t really know.
It’s like the question “do dogs go to heaven” - we just don’t have clear answers