R2 doesn't work with Ruby AWS SDK

I tried deb-s3 which is a Ruby tool to upload .deb packages to S3 and I got this error from inside the AWS SDK:

/var/lib/gems/3.0.0/gems/aws-sdk-core-3.175.0/lib/seahorse/client/plugins/raise_response_errors.rb:17:in `call': Invalid Argument: x-amz-copy-source-if-match each ETag must be surrounded by double quotes, got '9dd2262693f6c7a3b9f86482aadf3809'. (Aws::S3::Errors::InvalidArgument)

I think the R2 API is returning the ETag single-quoted when it should be double-quoted.