For me (Unity 2022.3.15f1, Windows 11), this worked:
Window->Package Manager
Packages: In Project
Unity Version Control
Remove