Since the usual display setting changes have not resolved the flickering, I would try Safe Mode and Apple Diagnostics next.
On an Apple-silicon Mac, shut it down, then press and hold the power button until the startup options appear.
Select your startup disk, hold Shift, and choose Continue in Safe Mode.
Use the Mac for a while and see whether the flickering continues.
Apple provides instructions for Safe Mode and startup options (Apple Support)
You can also run Apple Diagnostics.
From the startup options screen, press and hold Command-D. Apple Diagnostics will test the Mac and, in macOS Tahoe 26 and later, can provide a specific diagnostic for the built-in display.
If a reference code appears, record it. (Apple Support)
It would also be useful to note whether the flickering occurs during startup, on the login screen, or only after macOS has loaded.
If the behaviour changes when the display is moved through different normal viewing angles, make a note of that as well.
Apple has a repair manual specifically for the 15-inch MacBook Air (M2, 2023), including a section covering display and image issues: MacBook Air (15-inch, M2, 2023) Repair Manual. (Apple Support)
If the flickering is intermittent, recording it with a phone may also be useful when reporting the problem to Apple.
The most useful information to determine what to try next would be whether the flickering started before or after macOS 26.6.2, what the flickering actually looks like, and whether it occurs outside the normal macOS desktop.