@steveb4 … my pest (red neck) is a little different than yours. Yours lays eggs in the cane tips… and mine lays eggs in the more mature lower part of the cane that thas a bark like texture.
Looks like yours is called … raspberry cane borer… where mine is red neck borer.
I looked up pics of yours and it actually has a red neck too… they look somewhat similar.
yours on top, mine on bottom.