Ruby in Visual Studio Code

Hello everyone!
I’ve been trying to run Ruby in visual studio code with right extensions installed there and path to Ruby’s bin folder added to enviromental variables. But vsc refuses to see that Ruby is installed. My laptop is running on windows 10. Ruby versions installed are 3.1.3-1 and 3.2.0-1.
If anyone had similar problem and was able to solve it, please help! Thank you!