HSA- on non dependent child

I recently had to switch my health insurance plan to an HSA, I'm able to cover both of my children under the health plan, but am wondering if I can use funds from the HSA for my son whom my ex claims on their taxes? We share 50/50 custody, he claims my son on his taxes and I claim our daughter on my taxes.