An important consideration when it comes to food safety is that your it doesn't become a breeding ground for bacteria. That's why FDM 3D prints are usually not food safe no matter what they are made off. For your Lego lunchbox, assuming the bricks themselves were food safe, you would probably need to regularly take the box apart and wash each brick individually.
That being said it probably won't kill you, but don't expect Lego or anyone in a position of authority to tell you that's fine.
It'll come out perfectly clean without any damage.
I assume you're from the US? What is it that seems to promote such food safety fear over there? It's really noticeable in 3D printing and food preservation communities/recipes.
I assume not porousness, since by far the largest pores regardless of material will be the brick joints.
Either way, I'd be careful.