I think it depends on how long this has been going on and what is causing it. Some people go through periods where they only feel like eating certain foods, but if someone consistently eats just one type of food and struggles to tolerate anything else, I think it's worth looking into.
I've read a little about ARFID (Avoidant/Restrictive Food Intake Disorder), which can involve avoiding a wide range of foods because of texture, taste, fear of certain consequences or simply a lack of interest in eating. Of course, having a limited diet doesn't automatically mean someone has an eating disorder.
I'd suggest speaking with a doctor or registered dietitian, especially if there is weight loss, fatigue or concern about nutritional deficiencies. Understanding why the person is restricting their food choices is probably the most important first step. The approach should depend on the underlying cause rather than simply forcing them to eat different things.