AI-empowered Secure Data Communication in V2X Environment with 6G Network