Ask directly. Then bring in support.
You can ask, “Are you thinking about suicide?” Listen without judging. Involve a safe adult or crisis counselor and avoid promising secrecy. If they may act now, get urgent help and stay connected if it is safe.
“I care about you. Let’s find someone who can help us with this.”
Examples, not guarantees. Support and recovery look different for everyone.