The documentation is “too up-to-date” - this feature is only available in 24.5 to be released in the upcoming weeks.
See this paragraph:
The width of side-positioned labels can be adjusted using the --vaadin-form-item-label-width CSS property on the Form Layout element, or with the setLabelWidth() (V24.5 pre-release) method on the FormLayout instance in Flow.