Don’t buy a home in an HOA and avoid living in a place with extreme high risk of property destruction. Neither are requirements of owning a home.
HOA complaints typically are about control not really cost, and the terms are disclosed before purchase so not unpredictable at all, you are allowed to see the full financials and can see the financial health of the organization before committing. Insurance costs are directly correlated to risk, the costs are only as out of control as the risks (which are well known in Florida). E.g. if insurance expects to have to replace a roof every 5 years on average, and to replace a house every 30 years, expect to pay for 1/5th of a roof and 1/30th of a house in your insurance bill, on top of all the other risks.
It really depends where you live. Around here every home built since ~1970 has an HOA. The cities have demanded them, because they can push some of the work like re-paving streets onto the HOA as part of the founding documents.