you can use backtick quoting to avoid the need to double the backslashes:
```go
pattern := `response_time\.mean 20\.[0-9]+ `
```