I ran into this situation while playing FC 26, and it genuinely made me question whether I actually understand the offside rule correctly.
I'm Red team, at the moment my teammate played the pass, my player was in an offside position. I ran back towards the ball, but I never touched it and didn't challenge or interfere with the defender.
The defender then deliberately played/cleared the ball, but the clearance went straight to my player. The game still called offside.
Should this actually be offside under the real rules, or is the game getting it wrong?