Yes, Ledger can do all those things. No, it doesn't do this "out of the box".
I do most of these things. Simple, by adding meta-tags to my ledger. I'm just now working on consolidating on all my willy-nilly scripts and tools. And then plan to turn this into an actual "investment dashboard" ala ghostfolio but using the ledger as source.
In the end, a plain-text-ledger is just a of database. And the ledger query language (e.g. bean-query-language) a way to query it and produce reports.
So, what you are asking is more like "can SQLite categorize assets, give a breakdown of the exposure according to such cats per industry, region etc". Well, sure it can. But it's a bit of a strange question.
Thus I suspect there's space for more specialized solutions like Ghostfolio. Although I myself would prefer if my accounting system could also do these things. (I'd be interested in these willy-nilly scripts. I also enjoy writing willy-nilly scripts, but time is limited)
EDIT: saw the link you already posted
Au contraire: I'm building my business around that exact problem: that ledger is potentially good at doing anything, but doesn't do it out of the box.
[1] https://www.gnucash.org/docs/v5/C/gnucash-guide//chapter_inv...
[2] https://www.gnucash.org/docs/v5/C/gnucash-guide//rpt_standar...