Inpaint

I followed the course video but, it didn’t work as expected. I tried with both blender 4.5 and 5 and the result was same.

How do I solve it?

Thank you.