For those of old age or terminal/long-term illness who would be unable to make up the fasts after Ramadan, they may release themselves from the obligation of fasting by paying Fidyah (compensation).
Some scholars also include pregnant women in this category and those women who are breastfeeding.
If you’re unsure, please seek medical advice about your particular circumstances.