I understand your concerns. 3 months old baby not passing stools for 5 to 7 days without vomiting,abdominal distension , and is passing flatus doesn’t look alarming. Proper feeding is required to pass stools and urine.
Next Steps
Review in one or two days if not passed stools.
Health Tips
You can gently massage the abdomen to make him pass stools.