Subcutaneous and intramuscular therapeutic injections are not considered as invalidators of fasting because they do not enter the stomach through an open passage. However, intravenous injections containing nutritional fluids do invalidate the fast, as they are akin to food and drink in purpose. Therefore, your fast is valid. And Allah Knows Best.