✖ Compiling contracts with solc 0.8.11 (commit.d7f03943) Cannot read properties of undefined (reading 'slice')

npx oz deploy errors out even with simplest of contracts with very little indication of what might be causing the problem. Has anyone experience this before using openzeppelin CLI? Oddly enough if I run the commend without any actual contracts in the contracts folder it will run successfully.

Ex: Without Factory.sol in the contracts folder

factory % npx oz deploy
No contracts found to compile.
? Choose the kind of deployment (Use arrow keys)
❯ regular standard non-upgradeable contract
upgradeable upgradeable instance using a delegating proxy (EIP1967)
minimal non-upgradeable minimal proxy instance (EIP1167)
`

Ex: With Factory.sol in the contracts folder

factory % npx oz deploy
✖ Compiling contracts with solc 0.8.11 (commit.d7f03943)
Cannot read properties of undefined (reading 'slice')

:1234: Code to reproduce

pragma solidity ^0.8.4;

contract Toyota {
    Car[] public carsManufactured;
    function manufacture() public {
        carsManufactured.push(new Car());
    }
}

contract Car {

}

:computer: Environment

VSCode Terminal

{
"devDependencies": {
"@openzeppelin/cli": "^2.8.2"
},
"dependencies": {
"@openzeppelin/contracts-ethereum-package": "^3.0.0"
}
}

The OpenZeppelin CLI has been deprecated and replaced by OpenZeppelin Upgrades Plugins for Hardhat and Truffle.