You don’t patent indications.
[1]https://www.sciencedirect.com/science/article/pii/S009130571...
Usually doctors can still prescribe the compounded forms as long as they’re not duplicating something commercially available.
FDA won’t approve another drug for 3-7 years.