Rectangle tool not working (MacOS)

When I click and hold with the rectangle tool, instead of creating a rectangle it only draw a point at the initial coordinate.

The ellipse tool work just fine.

On a MacOS Sonoma 14.4