At 24 weeks pregnant my company made redundancies, but I was the only one to go

I was approaching 24 weeks pregnant when I was called to a meeting with my manager to discuss my risk of redundancy and restructuring which low and behold only involved me. I was presented with some ridiculous story of how, given that my manager was leaving, they had decided to restructure and combine mine and his role. Also during this meeting, I was offered a voluntary redundancy package and not offered the opportunity to apply for this newly created role.