The AWS Billing & Cost Management (BCM) service provides AWS Data Exports, a feature that allows you to export cost data in one of several schemas (aka tables, such as CUR 2.0 vs. FOCUS 1.2) to an S3 bucket and prefix of your choice.
This gist provides an Amazon Athena SQL DDL statement to create an external table in the AWS Glue catalog so you can run SQL queries over a BCM data export of the FOCUS 1.2 table schema.
Beyond just selecting the type of BCM export (e.g. CUR 2.0 vs. FOCUS 1.2), there are a number of other options you can choose from that will impact which columns are present and whether and how the objects written to your S3 bucket are partitioned by path.