I don't think Repl.it has a leg to stand on they just have a pile of money and the presumption of being willing and able to hire a shark in a suit to ruin someone's life with a baseless suit filed for the sake of harassment.
If you hire an intern to work on your code base you own merely own the work that person creates for the duration of their internship. Your piddling money doesn't buy you the general knowledge of how such a solution works any more than an auto shop acquires by dint of buying a few hours of labor owns the mechanics understanding of how a transmission works.
I would think that a few chunks of very similar code, and a well-paid expert testifying, plus the fact that he had knowledge of Replit's code from his employment, would go a long way towards a tough time in court for both parties. (Or, at the very least, that they both need to talk to lawyers before/when they start throwing around legal threats...)
(That also says nothing about whether such a contract has or has not been signed by the relevant parties.)