How to read only s3 object names not full object path

I’m using aws_s3_objects data source to read S3 objects with the below code.

data "aws_s3_objects" "bucket_objects" {
  bucket = "test-s3-bucket"
  prefix = "prefix1/prefix2/prefix3/"
}

This is the current output

prefix1/prefix2/prefix3/",
prefix1/prefix2/prefix3/lambdacode1.zip",
prefix1/prefix2/prefix3/lambdacode2.zip",
prefix1/prefix2/prefix3/lambdacode3.zip",

But I would like to only read the object names, not the full path, something like this.

lambdacode1.zip",
lambdacode2.zip",
lambdacode3.zip",

Achieved the desired output with basename function