No, you don’t have to use lemon branded filters and lubricants, but you do have to meet lubricants and filters that meet lemons specifications.
With lubricants, it’s relatively easy, with most manufacturers, because there are industry groups that license and control qualification procedures. For example, API EMA, SAE, and others work in conjunction with the equipment oems. Even thorn, understand that there are products on the market that just barely meet the minimum qualifications, we called them “ fighting grade” oils, and there are those that exceed the standards by a wide margin, ie premium products.
Filters, not so much. There is no industry wide policing organization that I am aware of, o you can’t rely on any advertising or marketing claims as to product suitability or quality. You are usually ok sticking with major brands, but there’s some real junk out there, or at least there was when I worked in the OEM engine industry.
The only products that are definitively qualified and warranted by the oem are those in his box.