First Replace the ERC20.sol file present in the contracts directory with the ERC20.sol file present in the @openzeppelin directory of nodemodules.
Try running some of the following tasks:
npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.js