To have uninterrupted wireless connectivity, higher throughput, and latency rate down to nanoseconds; future networks will rely heavily on higher frequency bands, yet these signals suffer from attenuation and can be easily blocked by objects. Hence, those signals lose strength over longer distances significantly compared to their low-frequency counterparts. To overcome these constraints, reconfigurable intelligent surfaces (RIS) can increase the wireless network capacity and coverage by consciously altering the wireless propagation environment, which makes them one of the key enablers of the 6G communication networks. The potential benefits of RIS-assisted communication systems can be effectively increased using machine learning (ML) to pave the path towards Wireless 2.0, having a vision of digitization, programmability, and intelligence. This paper reviews recent developments in RIS technology with a special emphasis on tuning techniques, hardware concepts, RIS empowered by artificial intelligence techniques, and applications for next generation of networks. Finally, a viewpoint on the difficulties and potential directions of intelligent metasurfaces are also presented.