A farmer comes across a large boulder in their field while plowing the farmer gets out and attempts to move the rock, but it is too difficult to move so they change their plowing pattern to go around the rock

Was work (physics) done in this scenario

Yes, work (physics) was done in this scenario. The farmer exerted force in an attempt to move the rock, but since the rock did not move, work was not done on the rock itself. However, the farmer did do work in changing their plowing pattern to go around the rock, as they exerted force to move the plow and direct it in a different direction.