It's completely legitimate to have an input tag outside of a label. Even the link you provided states:
The HTML <label> Element represents a caption for an item in a user interface. It can be associated with a control either by using the for attribute, or by placing the control element inside the label element.
See https://developer.mozilla.org/en-US/docs/HTML/Element/input Permitted content: None, this is a void element.
And https://developer.mozilla.org/en-US/docs/HTML/Element/label for an example of doing it correctly