How can you comment this calculation step to avoid points deduction by teacher?
I can't decide whether to offer my opinion (as a teacher) as an answer, or to vote to close because it's impossible to know your teacher's rationale. I guess the former.
There is a little bit of ambiguity in writing $\frac{d}{dx}\cdot e^{2x} \cdot y$ on the left-hand side of your highlighted equation. We don't normally multiply ($\cdot$) by the operator $\frac{d}{dx}$. I think you meant to say that the derivative is applied to the product $e^{2x} \cdot y$. I would prefer that be written as $\frac{d}{dx}\left(e^{2x}\cdot y\right)$.
Second point, and not having to do with your notation (which, as you say in your edit, was not as it was in the original submission). If this problem is assigned at a time when you are just learning how to solve linear ODEs with the integrating factor, it might also be the teacher wants you to show a few more steps. Once you move on to other new topics, this technique becomes routine, and steps can be skipped. But in some sense, you need to show that you can fill in the steps before you're afforded the privilege of skipping the steps.
I admit, it's possible that these reasons have nothing to do with the deduction. It could also be a straight-up mistake on the part of the instructor. But I usually ask for students to write up clear, explained answers, and this response lacks clarity in the notation and could possibly (depending on context) fall short of the expectations for explanation. Keep in mind that getting the right answer is not the only learning objective your teacher has for you. Being able to communicate mathematically, use symbols correctly, and justify steps, is also part of the learning.
It took me a minute or two to "decipher" how you'd gotten from the first line to the second line, especially since I wasn't sure whether you were applying an operation to both sides of the equation, or just manipulating the two sides independently.
For an answer written in "quick" style, I think this would be a fine way to write this manipulation:
$$e^{2x} \cdot \frac{dy}{dx} + e^{2x} \cdot 2y = e^{2x} \cdot e^{-x}$$
Rearrange LHS and simplify RHS:
$$e^{2x} \cdot \frac{dy}{dx} + 2 e^{2x} \cdot y = e^x$$
Apply chain rule and product rule in reverse:
$$e^{2x} \cdot \frac{dy}{dx} + \frac{d}{dx} (e^{2x}) \cdot y = e^x$$ $$\frac{d}{dx} (e^{2x} \cdot y) = e^x$$
First of all, some parentheses would be nice. It is not clear if you mean
$$\frac{d}{dx}\left(e^{2x}\right)\cdot y$$
or $$\frac{d}{dx}\left(e^{2x}\cdot y\right)$$
Second, some mention of the product rule would make it clear to the teacher where you got the idea to go from line $1$ to line $2$.