144hz not available on external monitor with M2 Macbook

Hi,

I just bought a USB C to HDMI cable to connect to my AOC CQ32G1 monitor (1440p, 144hz). The cable is specifically advertised with 4K60 and 2K144. But when connected in settings it only allows to go up to 60hz at 1440p. Both with lid open and clamshell mode. More than 60hz is only available at 1080p with 120hz. Do I have to change anything in settings to get 144hz? Displayport is not free with that monitor as my gaming pc is connected to it. HDMI port is 2.0. With the same cable 1440p 144hz works on a windows laptop, so the cable is not the problem. What am I missing?

Thanks!