Oh I fully agree that greenhouses have a role to play in food production. But that’s not typically what’s meant by indoor farming. That’s a separate but related concept.
That said, you may be slightly overstating the benefits here. Greenhouses can actually be very vulnerable to pests and diseases due to the high humidity, year-round warmth, and lack of natural predators. In theory they’re isolated but in practice it’s very likely some organism you don’t want will sneak in somehow. Pollination can also be a challenge for crops that need that.
I think these challenges can be overcome but there’s a lot of work to be done on them still.