If you are a co-signer on the loan, you may still be liable for the debt even if the primary borrower files for bankruptcy. As a co-signer, you are equally responsible for repaying the loan, and the lender can pursue you for payment if the primary borrower defaults.
If you are not a co-signer on the loan, but the car is registered in your name, you may still have some liability for the debt. In some cases, the lender may be able to repossess the car if the loan is charged off.
To determine your exact liability, it is important to carefully review the terms of the loan agreement and to consult with a bankruptcy attorney. They can help you understand your rights and options, and can represent you if necessary in negotiations with the lender.