In the work bowl of an electric pressure cooker* set to highest saut setting, heat oil.
Working in batches, cook sausage, stirring frequently, until crisp and browned, about 4 minutes each. Using slotted spoon, carefully remove sausage and let drain on paper towels, reserving drippings in cooker. Add celery, onion, bell pepper, and garlic; cook, stirring occasionally, scraping bits from bottom of pan, until just tender, about 2 minutes.
Add beans, stock, Creole seasoning, parsley, bay leaves, and thyme, stirring until well combined. Nestle ham hocks in liquid. Lock lid of cooker and confirm valve is set to seal. Set cook time to 55 minutes on high pressure. When finished cooking, allow pressure to release naturally.
Using tongs, carefully transfer ham hocks to cutting board. Remove meat, discarding bones, skin, and cartilage. Return shredded ham hocks and sausage to cooker, stirring until well combined. Discard bay leaves. Set to keep warm while preparing rice. Serve warm with rice and bread.
Garnish with parsley and thyme, if desired.
Notes
*We used Instant Pot.
Recipe by Southern Cast Iron at https://southerncastiron.com/red-beans-rice-smoked-ham-hock-sausage/