As per the official Pylint extension (version 2025.2) for VS Code 1.105, you will need to add an argument to Pylint's Args list. You can do so in the UI preferences or their corresponding JSON setting as in the following examples (where I have other arguments already):
Likewise to add more modules, append to the same argument:
--generated-members=torch.* cv2.* etc.