KOTS Troubleshoot: How do I create a hostname redactor

I would like to redact hostnames in a troubleshoot redactor, can you provide an example?

One of our Engineers worked on this example, give this a try.

apiVersion: troubleshoot.sh/v1beta2
kind: Redactor
metadata:
  name: basic-hostname-redaction
spec:
  redactors:
  - name: hostname testing
    removals:
      regex:
      - redactor: (?P<mask>[a-zA-Z0-9]+\.[a-zA-Z0-9]+\.[a-zA-Z0-9]+\.[a-zA-Z0-9]+)