Since Solidity v0.8.31, the /// @solidity memory-safe-assembly comment is deprecated and should be replaced with the block annotation:
assembly ("memory-safe") {}
Note that this syntax is only allowed starting from Solidity v0.8.13, so that would be a breaking change for Solady.