Docker target stage could not be found means the name you passed to the target flag matches none of the stages in the file being built, and the lookup that decided that ignores case. Whether you also get a suggestion depends on how far your spelling is from a real stage name, which is why two very similar mistakes produce messages of different lengths.
The lookup lowercases both sides, so case never causes this error. The hint counts edits and stops at three, so "productio" gets "(did you mean production?)" and "prod" gets nothing.
What this error means
A build that works without the target flag fails instantly with it, naming the value you passed in quotes. Sometimes a parenthetical names a real stage and sometimes it does not, with no obvious pattern. Nothing is pulled and no step runs, because the failure happens while BuildKit is resolving which stage you asked for.…