Cannot find ReentrancyGuard in @openzeppelin/contracts/security

I am working with hardhat and ihave installed both
@openzeppelin/hardhat-updates and
@openzeppelin/contracts.
However when try to run npm hardhat test i get an error because @openzeppelin/contracts/security/ReentrancyGuard.sol
file not found.

when i look at the directory, there is no security folder.

Please help.

My setup
WSL running ubuntu 20.04.06 LTS
Hardhat ver. 10.2.1
node.js ver. 20.9.0

ReentrancyGuard was moved to the utils directory in OpenZeppelin Contracts 5.0. See changelog.

Note you should use @openzeppelin/contracts-upgradeable if you are writing upgradeable contracts.

I will try this thanks

Gord