Turn Instant Pot on 'Sauté', and add oil. Add the onions and garlic and cook until soft, about 2 minutes.
Add the ham bone, diced ham, chicken broth, Worcestershire sauce, celery, carrots, and dried beans. Stir the mixture.
Close the lid, set to high pressure, and cook for 60 minutes.
After cooking, press 'Cancel' and carefully release the pressure.
Remove ham bones and excess fat. Cut ham into small pieces and return to the pot.
Mash some beans for thickness, stir, and adjust seasoning to taste.
Garnish with minced parsley (optional) and serve warm.