In the UK, you should not be fired (dismissed) for raising a genuine complaint (grievance) about one of your statutory employment rights, using your employer's formal grievance procedure. However, it's usually better to raise the grievance informally first. ACAS have a helpful guide to the process here.