I don’t know of any. Factorio and Satisfactory don’t involve programming (as far as I know—-I’ve only played Satisfactory), but involve planning and automation, and are fun for coop.
The only idea I have is a game where one person programs and the other uses the programs somehow. Maybe a real-time strategy game where one person builds bases and the other automates them. That probably wouldn’t end up being fun.
Curious to see other responses!