As per https://github.com/microsoft/vscode/issues/212296, this issue is OS agnostic. Downgrading to C# Dev Kit Extension version 1.5.20 worked for me, but later versions might work as well. This is on Windows 11.
1.5.20