Apparently those lock ons in training/exercises was with F-22 taking extra load in the form of external tanks. Either way, the fact that F-18s and Rafales have locked onto F-22 in WVR training/exercise is nothing to conclude anything on.
Can we all just note that modern air combat places lower emphasis on maneuverability in the flight regimes that fighters like Su-35, Su-57 and F-22 excel at mostly thanks to TVC.
Seriously, a Su-35 may be better at those airshow turns than a Typhoon or J-10C but I'd bet on the Typhoon and J-10C dominating over a Su-35 in actual combat. Flying so well doesn't translate into a better air superiority fighter.
F-22 has ancient sensors and software. Yes bits and bobs get upgraded but it's still going to be lacking as long as that radar is still from the 2000s, it's lacking any EOTS equivalent, computer architecture from the 1990s.
The US made a mistake to close down the F-22 line, preventing the F-22 lineage from adopting newer blocks and limiting it to piecemeal upgrades a la J-11B -> J-11BG which is not comparable to a J-16 even though a J-11BG is newer than early block J-16s.
The US considered the F-35 to be a better spend of funding and in the 1990s and 2000s it didn't appear they needed anything remotely close to F-22 and F-35 until 2040s and they knew they were going to have F-22/F-35 replacement generation by the 2040s at the latest anyway.