nvidia – Mouse pointer is showing as a dotted line in Ubuntu 20.04 Lts

i recently upgraded my kernel to 5.11 from 5.8. I was having issue with my nvidia graphics card driver. So I upgraded my kernel and thought to upgrade the graphics card driver as well but it didn’t work. But what I got is my mouse pointer just turned into a dotted line. My mouse pointer currently looks exactly like this.

__
_
.
__
___

When I change the scaling on my pc from the display manager settings it shows up. But on scaling the display sharpness reduces and it doesn’t look that great.

Any idea how to solve it?