CollisionShape.shape wont update

Godot Version

4.2

Question

I have several meshinstances that can change shape with player interaction. However when i run the code collisionshape3D.shape = mesh.create_trimesh_shape() it does not update the shape to they new generated mesh. It just keeps the old collision shape.

Not sure if this is a bug as i found another post that recomended this way in an older version of godot.

So it will update if i create a Boxshape3D with dimensions.

Using the method above so im not sure why after rebuilding my mesh it wont change to the new shape.
I call
mesh.clear_surfaces()
mesh.surface_begin(Mesh.PRIMITIVE_TRIANGLES)

then create a new mesh.

It only works one time?

I tried removing CollisionMesh3D and making a new one. Still does not work
any ideas?