If an athlete took betamethasone as a doping drug, would one of the unexpected side effects be depletion of vitamin d?

Betamethasone. Is a synthetic adrenal steroid. It would not be a useful doping agent and could potentially have serious side effects particularly on your already compromised back. Don't even think about it. Vitamin d would be the least of your problems.