This seems to be a bug in the localstack:latest-arm64 image that affects M4 processors. A possible workaround is enabling Rosetta in Docker and using the localstack:latest-amd64 image instead.
This is being discussed here: https://github.com/localstack/localstack/issues/8058