Hello Sai,
there is a good chance you are not yet on the latest version of the agent.
You need that 1.9.1 mentioned here in the SCX section: https://learn.microsoft.com/en-us/system-center/scom/release-build-versions?view=sc-om-2022#scx-agent
That has the 3.x support in it.
This should be the download place for the packs involved:
https://www.microsoft.com/en-pk/download/details.aspx?id=104213
Good luck!