Why is the audio delayed both in preview and render in after effects
I'd been stuck with the exact problem before and in my case it was an issue of VFR.

Apparently, Adobe products do not support videos with variable frame rates. So whenever you work with such videos the A/V goes out of sync.

Try re encoding the video to a constant frame rate using FFmpeg or handbrake.