The internally funded Anne McLaren Fellowships at The University of Nottingham state in their eligibility that "Candidates for the Anne McLaren Fellowships must be female and pursuing a career in a STEM subject". (link) One of the benefits of the fellowship is
The linking of the Fellowship to an indefinite academic post, subject to performance against a high-quality threshold and the continued right to work in the UK
What this means is that fellows will be presented 2 contracts. The first is a 3-year fixed term research only contract with a start date mutually agreed upon by the university and fellow. The second contract is a permanent research and teaching contract with a start date immediately following the end of the first contract. The second contract has stipulations regarding if you get terminated during the first contract (e.g., due to a loss of the right to work in the UK or performance issues) then the second contract is also terminated. There is no hiring process at the time of the second contract.
The Equality Act 2010 protects people from being treated less favourably because of their gender during recruitment. Section 159 of the Act does allow positive action (e.g. favouring an underrepresented group in a tie-break) but as those not classed as female are completely excluded from applying then this appears to be unlawful discrimination not positive action.
It could be that The University of Nottingham has a general exception due to being a charity. But then it would need to be included in the aim of the charity and the University's Charter of Incorporation contains "16. The University shall treat students, staff and other people solely on the basis of their merits, abilities and potential, regardless of gender".