The St. Lucie County Sheriff’s Office said Thursday that it had arrested two people in connection with a 2022 homicide.