Only way I can think of to solve this (because Go’s regexp library doesn’t have negative look behinds) is to do something like this:

 func ExpandTag(conf *Config, db Store, user *User, text string) string {
-       re := regexp.MustCompile(```#([-\w][-\w=]+)`)
+       re := regexp.MustCompile(`[( ,;][( ,;=]#([-\w][-\w=]+)`)

#237sn5a
This is twtxt search engine and crawler. Please contact Support if you have any questions, concerns or feedback!