The AC/DC microgrid-based charging station utilizes renewable resources, operating off-grid and on-grid based on charging demand, and trading electricity with the main grid when required. The diverse nature of hybrid AC/DC systems makes voltage stability a challenge in the present AC/DC microgrid management environment. Traditional algorithms have challenges in ensuring the appropriate cost of power purchased from Distributed Generators (DGs), start-up and shutdown, power switching, AC/DC demand balance, feeder thermal limit, bus voltage limit, the radiality of the microgrid system and connected Electric Vehicles (EVs) become more prevalent. In this study, a novel Optimized Feedforward Neural Network with Elephant Herding Intelligence (OFNN-EHI) has been proposed to handle AC/DC hybrid microgrids energy regulation issues and preserve power stability in hybrid AC/DC systems. The OFNN was used to identify the feeder line status and EHI is used to boost up the classification parameters. The simulation setup integrates an OFNN-EHI approach with an IEEE 33-bus AC/DC microgrid, allowing power exchange at bus 11. The ML model optimizes energy management, enhances stability and preserves power quality by dynamically controlling micro-turbines and wind turbines. According to research, the OFNN-EHI technique considerably improves energy management in hybrid AC/DC microgrids by maintaining constant voltage levels and power quality, outperforming standard algorithms in dealing with operational problems, and improving stability, power quality and cost efficiency.