It’s important that you take action and the right action if someone who owes you money files bankruptcy.
In order to be paid, you have to take certain actions in the bankruptcy case. One of the most elementary is to file a proof of claim in the bankruptcy case.
Even then, the debtor can object to the proof of claim. There are a lot of other things that need to be done in a bankruptcy case to ensure that a creditor’s paid. It probably makes good sense to hire a lawyer to handle those things for you.