Buried Sub Feed
This is a tough call. Technically it should be 5' away from the pool, unless it is the power supplying the pool equipment. There is an exception allowing it if space limitations prevent maintaining this 5' spacing.
Either way it must be 18" deep.
I would see what your inspector has to say. He may say it is no problem.
Sometimes I feel like if I answer any more questions it is like someone trying to climb over a fence to jump off a bridge and me giving them a boost.