When it seems you need to have your foot healed and surgery is the only way to do it, a good foot surgeon will be necessary. Your best referral will likely come from your primary care physician or a medical doctor who you see regularly. You will also want to check with your insurance company to see if there are specific practices you must use before you schedule your surgery. Other places can provide referrals as well.
Consider speaking with other people who have had similar surgeries. They can probably share the name of the surgeon who performed work on their foot, and they can also tell you what to expect in terms of pain and recovery.
A simple internet search will give you a list of potential surgeons for your foot. But, be judicious. You don’t want to pick a medical professional based on advertising and marketing.