please refer the image below for the error in vs code wsl extension output.
Tried the following approaches
it seems the latest VS code version is giving this regression error, downgrading it to 1.85.0 works for me.