LDF error on 4.2.1

You might be able to use a PIO terminal and use the uninstall command together with a pip install platformio==<some version> command, with a version from platformio · PyPI and a restart of VSCode. I have not tested this though. Different extension version can be installed easily though (Stop platformio core from updating - #2 by pfeerick), but that’s probably not what you want, since the core stays the same.