How long can you keep cooked pasta in the freezer?

I want to make a pasta bake and store it in the freezer in plastic boxes.

I won’t be keeping it more than 7 days - do you think it will be safe to eat?

I’m a bit wary because I heard of a student who died after eating pasta that was 5 days old! (But that was out of the fridge).

Thanks.
13 answers 13