Power a dust collector 2 different ways
You should definitely not build that as drawn. The plug for the foot switch side will be electrified when the selector switch isn’t set to foot switch mode, and plugs should never be electrified.
Also beware that physical arrangement of wires matters. All the current-carrying conductors (both hots and the neutral) must be in the same cable, conduit, or raceway. You can’t have, say, some 14/2 for the always-on leg and a single wire loose a foot away for the switch side. You end up creating an electromagnet with heating and mechanical stress effects if you do that.
You also can’t have parallel conductors - running hot and neutral pairs for both the always-on leg and the foot switch leg and joining them at the receptacle is not allowed (maybe ok if you use a double-pole mode selector switch though).