If you exercise in the evening, you can eat some fruit right after your workout (15-20 minutes later) to lower cortisol (stress hormone). Only preferably not a banana, but an apple or a pear, but you can drink a diet smoothie.
In principle, you can eat nothing at all right away, but then after 1.5-2 hours you should have a full meal. It is better that it be something proteinaceous: cottage cheese, chicken breast, fish (only not fried, but baked). Plan this dinner so that it is at least 2 (preferably 4) hours before bedtime.
A good option for a post-workout snack is a protein shake. It is low in calories, but at the same time gives a feeling of fullness and energy to the body, and protein will be useful for muscle growth. Soy protein contains substances that help speed up fat burning. Yes, you should not expect miracles, but in general it is well suited for losing weight.
If you have a morning workout, then after 1.5-2 hours you can eat not only proteins, but also some complex carbohydrates. For example, it can be buckwheat with chicken, boiled eggs with crispbread or whole grain bread, etc.
If you are losing weight, then the basic principle for you will be to simply eat a little less than your daily calorie intake and reduce the carbohydrate content in your daily diet. You may not eat anything immediately after training, but if you feel overworked, then it makes sense to eat something with a predominant carbohydrate content, such as a banana or an apple.
If you train in the evening, eat low-fat cottage cheese or poultry fillets and go to bed. But do not forget to eat well before training (note just in case, you never know).
If in the morning - 40-60 minutes after training, eat what you have planned for the day.
If the goal is lose weight - you don't need to eat anything right after a workout, and after a while, protein and a small amount of carbohydrates, preferably complex ones, if 3-4 hours before sleep.