It's like selling shares of a company with significant cash reserves before/after they choose to liquidate a chunk of them into dividends or stock buy-backs, I would hope you priced the shares accordingly and have nothing to be mad about.
The potential buyer can still inquire and factor that in, right?
An HOA is no different. All the owners are also owners of the HOA. When you buy a place in the HOA you also buy into the HOA, and when you sell you also sell your interest in the HOA.
If State doesn’t then a non profit corporation is formed that does
Size of the share is determined usually by the dwelling floor area divided by the sum total of all dwellings in the scheme.
So if you sell your house after decades of contributions, and then the BC is dissolved, then too bad, you sold your share in a going concern and lost your say in it's affairs.
Arguably you benefitted from the contributions from someone who came before you, and now someone will benefit from yours.
So there is no realistic scenario where hoa reserves factor into home price