resolved it by updating the localstack version
public void beforeAll(ExtensionContext context) throws IOException, InterruptedException {
localStack = new LocalStackContainer(DockerImageName.parse("localstack/localstack:4.1.1"))
.waitingFor(Wait.forListeningPort()
.withStartupTimeout(Duration.ofMinutes(5)))
.withServices(SQS);
localStack.start();