Replace the word “bookworm” with “bullseye” (twice) or upgrade to a newer version of go.
bookworm is a newer version of debian, 1.18 is an older version of go.
You can explore available combinations of images here:
https://hub.docker.com/_/golang/tags?page=&page_size=&ordering=&name=1.18