Farry was elected to the position in the 2019 United Kingdom general election , replacing the incumbent Sylvia Hermon , who had held the position since being elected to it in the 2001 United Kingdom general election , but chose not to contest in the 2019 United Kingdom general election .