I’m a developer offering my point of view, not a lawyer offering you a service.
With a lawyer who understand the opportunity you can modify the contract for your “safety”, then you can work safely avoiding the fear in red flags and focusing and taking advantage of your technical skills.