The jury is still out on this one.
A 2019 Cochrane review of 6 trials found that probiotics are no more effective than placebo at preventing infantile colic, however they may reduce the amount of crying time a baby endures.
Alternatively, there have been some trials that show probiotic usage, specifically L. reuteri can reduce colic in breastfed infants.
Given that there are risks of usage and inconsistencies with studies, the American Academy of Pediatrics cannot form a recommendation on them at this time. The FDA doesn’t regulate supplements and they should not be used in immunocompromised or preterm infants due to risk factors.