Unable to add patches via composer when we run "composer install" or "composer update"
The solution was
composer require cweagans/composer-patches

we need to be sure that above package is included
After adding the above I was able to add patches via composer.json