codeintel: Validate package names before insertion.
Created by: varungandhi-src
Fixes https://github.com/sourcegraph/sourcegraph/issues/33251, suggested by @mrnugget.
Test plan
Added test case.
Created by: varungandhi-src
Fixes https://github.com/sourcegraph/sourcegraph/issues/33251, suggested by @mrnugget.
Added test case.