There is no restriction on a candidate for the US presidency vis-a-vis current or former incarceration. Anyone could constitutionally run a presidential campaign or even serve while in jail. This is because the Supreme Court has held that only the Constitution can set qualification requirements. [0]
The sole, debatable exclusion seems to be the 25th Amendment, which allows the vice president and cabinet (or the president themselves) to shift presidential powers to the vice president when "the President is unable to discharge the powers and duties of his office." [1]
[0] https://fortune.com/2023/03/30/donald-trump-can-still-run-fo...