The legality check on PkHex is still rudimentary, it'll be awhile before it catches up, but as long as the pokemon "makes sense", ie. caught with the right ball, has the right moves, caught in a proper spawn area etc. you should be fine.
auto
for example, if you are using atmosphere, make sure...