in my case, this fixed the issue:
poetry add s3fs[boto3]
my pyproject.toml has the following dependencies:
s3fs = {extras = ["boto3"], version = "^2025.2.0"} botocore = "1.35.93" boto3 = "1.35.93"