The last good commit was 8474716abb. After this commits from main were pushed to blender-v4.0-release. These are being reverted. Commits a4880576dc from to b26f176d1a that happend afterwards were meant for 4.0, and their contents is preserved.
8474716abb
a4880576dc
b26f176d1a