"in him" is flagged by the visual filter as being "in Jesus", but the software attributes the verse 4 "in him" to God. Please check this
The Pulpit Commentary: Ephesians 1:4
Ver. 4.—Even as he chose us in him before the foundation of the world; literally, he chose us out, or selected us (ἐξελέξατο) for himself (middle voice). The Father chose the heirs of salvation, selected those who were to be quickened from the dead (ch. 2:1) and saved. He chose them in Christ—in connection with his work and office as Mediator, giving them to him to be redeemed (John 17:11, 12)[1]
Matthew Henry
Verses 3–8
Spiritual and heavenly blessings are the best blessings; with which we cannot be miserable, and without which we cannot but be so. This was from the choice of them in Christ, before the foundation of the world, that they should be made holy by separation from sin, being set apart to God, and sanctified by the Holy Spirit, in consequence of their election in Christ.[2]
Faithlife Study Bible
1:4 he chose Here Paul applies to believers a concept that formerly applied to Israel alone (see Deut 7:6–8; compare Rom 9:11 and note; 2 Thess 2:13 and note). Just as God chose Israel as His treasured possession, He now elects believers to receive the blessings mediated through Christ.[3]
The ESV Study Bible
1:4 He chose us in him means that the Father chose Christians in the Son (Christ)[4]
[1] Spence-Jones, H. D. M. (Ed.). (1909). Ephesians (p. 2). London; New York: Funk & Wagnalls Company.
[2] Henry, M., & Scott, T. (1997). Matthew Henry’s Concise Commentary (Eph 1:3). Oak Harbor, WA: Logos Research Systems.
[3] Barry, J. D., Mangum, D., Brown, D. R., Heiser, M. S., Custis, M., Ritzema, E., … Bomar, D. (2012, 2016). Faithlife Study Bible (Eph 1:4). Bellingham, WA: Lexham Press.
[4] Crossway Bibles. (2008). The ESV Study Bible (p. 2262). Wheaton, IL: Crossway Bibles.