The foam-enhanced oil recovery (EOR) technique has garnered attention from the upstream oil industry for its capacity to address challenges associated with gas-based EOR methods, such as gravity segregation, channeling, and viscous fingering. . The foam injection process has emerged as a promising and innovative technique. Although it has been successfully applied in oilfields to improve oil recovery efficiency, there are still many challenges, especially regarding foam solution quality, foamability, and stability at high pressures and temperatures .