An engineer who spent three years on your product understands the architecture, knows which approaches failed, and remembers the shape of the solution. All of that leaves with them, and none of it can or should be stopped.
Any vendor claiming otherwise is selling something that does not exist, and the pitch is worth being suspicious of. Non-competes are narrowing in most jurisdictions, and memory has never been enforceable.
So the question is not how to stop someone taking what they learned. It is whether they also take a readable copy of the thing itself.

