•Exploring gene-environment interactions in MS reveals potential insights into disease onset.•Previous work suggests higher outdoor time and UV exposure reduce pediatric-onset MS risk.•While identifying no significant interactions, the study acknowledges limitations, such as potential presence of unexplored genetic variants.