I experienced a similar issue importing the Script object:
import {Script} from "forge-std/Script.sol";
I didn't know that Foundry manages the path by default so I tried to find the Script.sol by following the previous shared path and couldn't find it.
After some research, I found that the correct path was:
import {Script} from "../lib/forge-std/src/Script.sol";
So you can either follow the previous repliessuggestions suggestions which are correct or just import it using the actual path.
import {Test} from "lib/forge-std/src/Test.sol"